mirror of
https://github.com/python/cpython.git
synced 2025-12-04 08:34:25 +00:00
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.
........
................
This commit is contained in:
parent
99147c40b5
commit
41142f50c3
1 changed files with 1 additions and 0 deletions
|
|
@ -488,6 +488,7 @@ class HTTPResponse(io.RawIOBase):
|
||||||
return b""
|
return b""
|
||||||
|
|
||||||
if self._method == "HEAD":
|
if self._method == "HEAD":
|
||||||
|
self.close()
|
||||||
return b""
|
return b""
|
||||||
|
|
||||||
if self.chunked:
|
if self.chunked:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue