Skip to content
Myr

Redirect history fix (Closes #91)

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 080db5e · Browse files · 1 file+1 added−4 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−4 removed

  • other:+1 added−4 removed

1 file+1 added−4 removed

modified:requests/models.py+1 added-4 removed
168 unmodified lines
169 history = []170171 r = build(resp)172173 if r.status_code in REDIRECT_STATI:174 self.redirect = True173 if r.status_code in REDIRECT_STATI and not self.redirect:174176 if self.redirect:177175 while (176 ('location' in r.headers) and177 ((self.method in ('GET', 'HEAD')) or178 (r.status_code is 303) or
375 unmodified lines