Restore the functionality from here:
https://github.com/kennethreitz/requests/blob/v0.14.2/requests/models.py#L884
This commit is contained in:
Ian Cordasco
2013-01-02 14:25:33 -05:00
parent 5d87e1aeba
commit 5264c71d86
+1
View File
@@ -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')