mirror of
https://github.com/python/cpython.git
synced 2025-09-17 06:06:25 +00:00
Fixed Issue6312 - httplib fails with HEAD requests to pages with "transfer-encoding: chunked"
This commit is contained in:
parent
ad709ee06b
commit
ed9204346e
4 changed files with 39 additions and 0 deletions
|
@ -524,6 +524,9 @@ class HTTPResponse:
|
|||
if self.fp is None:
|
||||
return ''
|
||||
|
||||
if self._method == 'HEAD':
|
||||
return ''
|
||||
|
||||
if self.chunked:
|
||||
return self._read_chunked(amt)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue