summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2010-06-04 16:38:00 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2010-06-04 16:38:00 (GMT)
commit447f82f95ff911e86ace0887af3e8dcee5a2946a (patch)
tree6dda0561e678344bf39e7c93905305f4efb598c6
parent7da8f06df09aff2f45df9ebcda40e9078a6ab92c (diff)
downloadcpython-447f82f95ff911e86ace0887af3e8dcee5a2946a.zip
cpython-447f82f95ff911e86ace0887af3e8dcee5a2946a.tar.gz
cpython-447f82f95ff911e86ace0887af3e8dcee5a2946a.tar.bz2
Merged revisions 81687 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r81687 | senthil.kumaran | 2010-06-04 22:02:14 +0530 (Fri, 04 Jun 2010) | 3 lines Fix issue6312 - close the resp object for HEAD response. ........
-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: