Fix off-by-one error.

This commit is contained in:
Cory Benfield
2012-12-17 18:42:32 +00:00
parent 9bb332fee1
commit 8b1b706903
+1 -1
View File
@@ -76,7 +76,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.