diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2010-06-04 16:43:10 (GMT) |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-06-04 16:43:10 (GMT) |
commit | 41142f50c32719e0a979349e26c50e8f94602356 (patch) | |
tree | e1cbcb3463b15284e93172df08b4abd4b2fc58d3 /Lib/http | |
parent | 99147c40b5d67d875b5a383d2ed2f54c02da82de (diff) | |
download | cpython-41142f50c32719e0a979349e26c50e8f94602356.zip cpython-41142f50c32719e0a979349e26c50e8f94602356.tar.gz cpython-41142f50c32719e0a979349e26c50e8f94602356.tar.bz2 |
Merged revisions 81689 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r81689 | senthil.kumaran | 2010-06-04 22:08:00 +0530 (Fri, 04 Jun 2010) | 9 lines
Merged revisions 81687 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81687 | senthil.kumaran | 2010-06-04 22:02:14 +0530 (Fri, 04 Jun 2010) | 3 lines
Fix issue6312 - close the resp object for HEAD response.
........
................
Diffstat (limited to 'Lib/http')
-rw-r--r-- | Lib/http/client.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/http/client.py b/Lib/http/client.py index f9b74e4..612fa37 100644 --- a/Lib/http/client.py +++ b/Lib/http/client.py @@ -488,6 +488,7 @@ class HTTPResponse(io.RawIOBase): return b"" if self._method == "HEAD": + self.close() return b"" if self.chunked: |