Merge pull request #1355 from sigmavirus24/fix_links

Prevent a KeyError when there's no link headers
This commit is contained in:
Kenneth Reitz
2013-05-09 01:03:49 -07:00
+1 -1
View File
@@ -646,7 +646,7 @@ class Response(object):
def links(self):
"""Returns the parsed header links of the response, if any."""
header = self.headers['link']
header = self.headers.get('link')
# l = MultiDict()
l = {}