]> granicus.if.org Git - python/commitdiff
Fix issue6312 - close the resp object for HEAD response.
authorSenthil Kumaran <orsenthil@gmail.com>
Fri, 4 Jun 2010 16:32:14 +0000 (16:32 +0000)
committerSenthil Kumaran <orsenthil@gmail.com>
Fri, 4 Jun 2010 16:32:14 +0000 (16:32 +0000)
Lib/httplib.py

index 5eb3f0d1fa3c8c934e4d70774cee04a6fc4f369d..d66a9fcd05b184b0565c3f56948d1f80ee31ad93 100644 (file)
@@ -525,6 +525,7 @@ class HTTPResponse:
             return ''
 
         if self._method == 'HEAD':
+            self.close()
             return ''
 
         if self.chunked: