Skip to content
Myr

Merge pull request #1020 from Lukasa/misc

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

Fix off-by-one error.

authored by Kenneth Reitz · committed by Kenneth Reitz · parents 64eee1e, 8b1b706 · 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
75 unmodified lines
76 self.cookies.set_cookie(cookie)7778 resp.content # Consume socket so it can be released7980 if i > self.max_redirects:80 if i >= self.max_redirects:81 raise TooManyRedirects('Exceeded %s redirects.' % self.max_redirects)8283 # Release the connection back into the pool.84 resp.close()
301 unmodified lines