From dfaced5d3df73cccaf56733c1733c9c8340ca04d Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Fri, 4 Jun 2010 16:32:14 +0000 Subject: [PATCH] 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 5eb3f0d1fa..d66a9fcd05 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: -- 2.50.0