Skip to content
Myr

None is not iterable

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

authored by barberj · committed by barberj · parent 64fd0ba · 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
191 unmodified lines
192 # Fallback to None if there's no status_code, for whatever reason.193 response.status_code = getattr(resp, 'status', None)194195 # Make headers case-insensitive.196 response.headers = CaseInsensitiveDict(getattr(resp, 'headers', None))196 response.headers = CaseInsensitiveDict(getattr(resp, 'headers', {}))197198 # Set encoding.199 response.encoding = get_encoding_from_headers(response.headers)200
684 unmodified lines