diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2010-06-04 16:32:14 +0000 |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-06-04 16:32:14 +0000 |
commit | dfaced5d3df73cccaf56733c1733c9c8340ca04d (patch) | |
tree | c7df9b4b47ce6044dc1de5e114f8f47793547638 | |
parent | 998cc24dd41d2805be4979b7a89b04190e4cf500 (diff) | |
download | cpython-git-dfaced5d3df73cccaf56733c1733c9c8340ca04d.tar.gz |
Fix issue6312 - close the resp object for HEAD response.
-rw-r--r-- | Lib/httplib.py | 1 |
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: |