From: Senthil Kumaran Date: Fri, 4 Jun 2010 16:32:14 +0000 (+0000) Subject: Fix issue6312 - close the resp object for HEAD response. X-Git-Tag: v2.7rc1~36 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dfaced5d3df73cccaf56733c1733c9c8340ca04d;p=thirdparty%2FPython%2Fcpython.git Fix issue6312 - close the resp object for HEAD response. --- diff --git a/Lib/httplib.py b/Lib/httplib.py index 5eb3f0d1fa3c..d66a9fcd05b1 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: