summaryrefslogtreecommitdiffstats
path: root/Lib/http/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/http/client.py')
-rw-r--r--Lib/http/client.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/http/client.py b/Lib/http/client.py
index 2ddb014..c83c53b 100644
--- a/Lib/http/client.py
+++ b/Lib/http/client.py
@@ -488,6 +488,7 @@ class HTTPResponse(io.RawIOBase):
return b""
if self._method == "HEAD":
+ self.close()
return b""
if self.chunked: