diff options
Diffstat (limited to 'Lib/httplib.py')
-rw-r--r-- | Lib/httplib.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/httplib.py b/Lib/httplib.py index 43c8797..5eb3f0d 100644 --- a/Lib/httplib.py +++ b/Lib/httplib.py @@ -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) |