From: Senthil Kumaran Date: Fri, 4 Jun 2010 16:43:10 +0000 (+0000) Subject: Merged revisions 81689 via svnmerge from X-Git-Tag: v3.1.3rc1~676 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=41142f50c32719e0a979349e26c50e8f94602356;p=python Merged revisions 81689 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r81689 | senthil.kumaran | 2010-06-04 22:08:00 +0530 (Fri, 04 Jun 2010) | 9 lines 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. ........ ................ --- diff --git a/Lib/http/client.py b/Lib/http/client.py index f9b74e49e5..612fa3752c 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: