mirror of
https://github.com/python/cpython.git
synced 2025-09-17 14:16:02 +00:00
Fix issue6312 - close the resp object for HEAD response.
This commit is contained in:
parent
998cc24dd4
commit
dfaced5d3d
1 changed files with 1 additions and 0 deletions
|
@ -525,6 +525,7 @@ class HTTPResponse:
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
if self._method == 'HEAD':
|
if self._method == 'HEAD':
|
||||||
|
self.close()
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
if self.chunked:
|
if self.chunked:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue