mirror of
https://github.com/kennethreitz/requests3.git
synced 2026-06-05 23:10:16 +00:00
@@ -77,7 +77,7 @@ class SessionRedirectMixin(object):
|
||||
|
||||
resp.content # Consume socket so it can be released
|
||||
|
||||
if i > self.max_redirects:
|
||||
if i >= self.max_redirects:
|
||||
raise TooManyRedirects('Exceeded %s redirects.' % self.max_redirects)
|
||||
|
||||
# Release the connection back into the pool.
|
||||
|
||||
Reference in New Issue
Block a user