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:
5d87e1a
)
Fix #1079
author
Ian Cordasco
<graffatcolmingov@gmail.com>
Wed, 2 Jan 2013 19:25:33 +0000
(14:25 -0500)
committer
Ian Cordasco
<graffatcolmingov@gmail.com>
Wed, 2 Jan 2013 19:25:33 +0000
(14:25 -0500)
Restore the functionality from here:
https://github.com/kennethreitz/requests/blob/v0.14.2/requests/models.py#L884
requests/adapters.py
patch
|
blob
|
history
diff --git
a/requests/adapters.py
b/requests/adapters.py
index
0542a65
..
dd0b08d
100644
(file)
--- a/
requests/adapters.py
+++ b/
requests/adapters.py
@@
-94,6
+94,7
@@
class HTTPAdapter(BaseAdapter):
# Set encoding.
response.encoding = get_encoding_from_headers(response.headers)
response.raw = resp
+ response.reason = response.raw.reason
if isinstance(req.url, bytes):
response.url = req.url.decode('utf-8')