Skip to content
Myr

Fix off-by-one error.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Cory Benfield · committed by Cory Benfield · parent 9bb332f · Browse files · 1 file+1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:requests/sessions.py+1 added-1 removed
74 unmodified lines
75 self.cookies.set_cookie(cookie)7677 resp.content # Consume socket so it can be released7879 if i > self.max_redirects:79 if i >= self.max_redirects:80 raise TooManyRedirects('Exceeded %s redirects.' % self.max_redirects)8182 # Release the connection back into the pool.83 resp.close()
292 unmodified lines