mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Redirect history fix (Closes #91)
This commit is contained in:
+1
-4
@@ -170,10 +170,7 @@ class Request(object):
|
||||
|
||||
r = build(resp)
|
||||
|
||||
if r.status_code in REDIRECT_STATI:
|
||||
self.redirect = True
|
||||
|
||||
if self.redirect:
|
||||
if r.status_code in REDIRECT_STATI and not self.redirect:
|
||||
|
||||
while (
|
||||
('location' in r.headers) and
|
||||
|
||||
Reference in New Issue
Block a user