Skip to content
Myr

Fix #1079

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Restore the functionality from here: https://github.com/kennethreitz/requests/blob/v0.14.2/requests/models.py#L884

authored by Ian Cordasco · committed by Ian Cordasco · parent 5d87e1a · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:requests/adapters.py+1 added
92 unmodified lines
9394 # Set encoding.95 response.encoding = get_encoding_from_headers(response.headers)96 response.raw = resp97 response.reason = response.raw.reason9899 if isinstance(req.url, bytes):100 response.url = req.url.decode('utf-8')101 else:
93 unmodified lines