Always close connection during redirections.

This commit is contained in:
Jérémy Bethmont
2011-08-09 17:30:19 +02:00
parent 32a861b2ed
commit cf94c96a68
+2
View File
@@ -192,6 +192,8 @@ class Request(object):
(self.allow_redirects))
):
r.close()
history.append(r)
url = r.headers['location']