Merge pull request #3462 from sigmavirus24/bug/3461

Close and then release the connection
This commit is contained in:
Cory Benfield
2016-07-30 18:18:14 +01:00
committed by GitHub
+1 -1
View File
@@ -868,6 +868,6 @@ class Response(object):
*Note: Should not normally need to be called explicitly.*
"""
if not self._content_consumed:
return self.raw.close()
self.raw.close()
return self.raw.release_conn()