Skip to content
Myr

ignore http errors in redirect loops

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 5708fe9 · Browse files · 1 file+2 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+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:requests/models.py+2 added-1 removed
230 unmodified lines
231 self.cookiejar.extract_cookies(resp, req)232233 except urllib2.HTTPError, why:234 self._build_response(why)235 if not self.redirect:235 self.response.error = why236 self.response.error = why237 else:238 self._build_response(resp)239 self.response.ok = True240
232 unmodified lines