Prevent a KeyError when there's no link headers

This commit is contained in:
Ian Cordasco
2013-05-08 23:26:49 -04:00
parent b599886beb
commit 88fda94218
+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 = {}