Skip to content
Myr

urllib3, don't decode content

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

authored by Kenneth Reitz · committed by Kenneth Reitz · parent f52c003 · Browse files · 1 file+3 added−2 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+3 added−2 removed

  • other:+3 added−2 removed

1 file+3 added−2 removed

modified:requests/models.py+3 added-2 removed
133 unmodified lines
134135 # Save original resopnse for later.136 response.raw = resp137138 # TODO: ?139 if is_error:140 response.error = resp141142 return response
134 unmodified lines
277 redirect=False,278 assert_same_host=False,279 # preload_content=True280 # preload_content=False280 preload_content=do_block281 preload_content=do_block,282 decode_content=False283 )284285 # Extract cookies.286 # if self.cookiejar is not None:
145 unmodified lines
432433 if (self.status_code >= 300) and (self.status_code < 400):434 raise Exception('300 yo')435434436 elif (self.status_code >= 400) and (self.status_code < 500):437 raise Exception('400 yo')438439 elif (self.status_code >= 500) and (self.status_code < 600):
1 unmodified line