mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Fix #1079
Restore the functionality from here: https://github.com/kennethreitz/requests/blob/v0.14.2/requests/models.py#L884
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user