projects
/
platform
/
upstream
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b599886
)
Prevent a KeyError when there's no link headers
author
Ian Cordasco
<graffatcolmingov@gmail.com>
Thu, 9 May 2013 03:26:49 +0000
(23:26 -0400)
committer
Ian Cordasco
<graffatcolmingov@gmail.com>
Thu, 9 May 2013 03:26:49 +0000
(23:26 -0400)
requests/models.py
patch
|
blob
|
history
diff --git
a/requests/models.py
b/requests/models.py
index 49c6364c94f504c264853ec80d80cf67a289ec6c..9467a56a3e08c24a2811e61b44bdfbcc93fa1334 100644
(file)
--- a/
requests/models.py
+++ b/
requests/models.py
@@
-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 = {}