Skip to content
Myr

Always close connection during redirections.

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

authored by Jérémy Bethmont · committed by Jérémy Bethmont · parent 32a861b · Browse files · 1 file+2 added−0 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+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:requests/models.py+2 added
190 unmodified lines
191 (r.status_code is 303) or192 (self.allow_redirects))193 ):194195 r.close()196197 history.append(r)198199 url = r.headers['location']200
377 unmodified lines