Fixed Issue6312 - httplib fails with HEAD requests to pages with "transfer-encoding: chunked"

This commit is contained in:
Senthil Kumaran 2010-04-28 17:20:43 +00:00
parent ad709ee06b
commit ed9204346e
4 changed files with 39 additions and 0 deletions

View file

@ -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)