From 8c4361090690d9f5c7d8b310ffc7dcf7be44038a Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Fri, 4 Jun 2010 16:34:53 +0000 Subject: [PATCH] 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. ........ --- Lib/httplib.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/httplib.py b/Lib/httplib.py index 262d60259c..5b89305899 100644 --- a/Lib/httplib.py +++ b/Lib/httplib.py @@ -515,6 +515,7 @@ class HTTPResponse: return '' if self._method == 'HEAD': + self.close() return '' if self.chunked: -- 2.50.1