summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Lib/httplib.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/httplib.py b/Lib/httplib.py
index 5eb3f0d1fa..d66a9fcd05 100644
--- a/Lib/httplib.py
+++ b/Lib/httplib.py
@@ -525,6 +525,7 @@ class HTTPResponse:
return ''
if self._method == 'HEAD':
+ self.close()
return ''
if self.chunked: