summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2010-06-04 16:32:14 +0000
committerSenthil Kumaran <orsenthil@gmail.com>2010-06-04 16:32:14 +0000
commitdfaced5d3df73cccaf56733c1733c9c8340ca04d (patch)
treec7df9b4b47ce6044dc1de5e114f8f47793547638
parent998cc24dd41d2805be4979b7a89b04190e4cf500 (diff)
downloadcpython-git-dfaced5d3df73cccaf56733c1733c9c8340ca04d.tar.gz
Fix issue6312 - close the resp object for HEAD response.
-rw-r--r--Lib/httplib.py1
1 files changed, 1 insertions, 0 deletions
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: