commit | dfaced5d3df73cccaf56733c1733c9c8340ca04d | [log] [tgz] |
---|---|---|
author | Senthil Kumaran <orsenthil@gmail.com> | Fri Jun 04 16:32:14 2010 +0000 |
committer | Senthil Kumaran <orsenthil@gmail.com> | Fri Jun 04 16:32:14 2010 +0000 |
tree | c7df9b4b47ce6044dc1de5e114f8f47793547638 | |
parent | 998cc24dd41d2805be4979b7a89b04190e4cf500 [diff] [blame] |
Fix issue6312 - close the resp object for HEAD response.
diff --git a/Lib/httplib.py b/Lib/httplib.py index 5eb3f0d..d66a9fc 100644 --- a/Lib/httplib.py +++ b/Lib/httplib.py
@@ -525,6 +525,7 @@ return '' if self._method == 'HEAD': + self.close() return '' if self.chunked: