Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 41142f5

Browse files
committed
Merged revisions 81689 via svnmerge from
svn+ssh://[email protected]/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://[email protected]/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. ........ ................
1 parent 99147c4 commit 41142f5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/http/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,7 @@ def read(self, amt=None):
488488
return b""
489489

490490
if self._method == "HEAD":
491+
self.close()
491492
return b""
492493

493494
if self.chunked:

0 commit comments

Comments
 (0)