mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Merge pull request #3462 from sigmavirus24/bug/3461
Close and then release the connection
This commit is contained in:
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user