projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64fd0ba
)
None is not iterable
author
barberj
<barber.justin@gmail.com>
Fri, 7 Sep 2012 01:17:55 +0000
(21:17 -0400)
committer
barberj
<barber.justin@gmail.com>
Tue, 11 Sep 2012 12:39:10 +0000
(08:39 -0400)
requests/models.py
patch
|
blob
|
history
diff --git
a/requests/models.py
b/requests/models.py
index
031efee
..
e63fd2f
100644
(file)
--- a/
requests/models.py
+++ b/
requests/models.py
@@
-193,7
+193,7
@@
class Request(object):
response.status_code = getattr(resp, 'status', None)
# Make headers case-insensitive.
- response.headers = CaseInsensitiveDict(getattr(resp, 'headers',
None
))
+ response.headers = CaseInsensitiveDict(getattr(resp, 'headers',
{}
))
# Set encoding.
response.encoding = get_encoding_from_headers(response.headers)