Skip to content
Myr

Merge pull request #848 from barberj/develop

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

None is not iterable

authored by Kenneth Reitz · committed by Kenneth Reitz · parents 106bae6, fc1d0fe · Browse files · 1 file+1 added−1 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−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:requests/models.py+1 added-1 removed
195 unmodified lines
196 # Fallback to None if there's no status_code, for whatever reason.197 response.status_code = getattr(resp, 'status', None)198199 # Make headers case-insensitive.200 response.headers = CaseInsensitiveDict(getattr(resp, 'headers', None))200 response.headers = CaseInsensitiveDict(getattr(resp, 'headers', {}))201202 # Set encoding.203 response.encoding = get_encoding_from_headers(response.headers)204
684 unmodified lines