mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Always close connection during redirections.
This commit is contained in:
@@ -192,6 +192,8 @@ class Request(object):
|
||||
(self.allow_redirects))
|
||||
):
|
||||
|
||||
r.close()
|
||||
|
||||
history.append(r)
|
||||
|
||||
url = r.headers['location']
|
||||
|
||||
Reference in New Issue
Block a user