diff options
Diffstat (limited to 'Lib/httplib.py')
-rw-r--r-- | Lib/httplib.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/httplib.py b/Lib/httplib.py index e6dc898..077fb25 100644 --- a/Lib/httplib.py +++ b/Lib/httplib.py @@ -371,7 +371,7 @@ class HTTPResponse: if self.chunked: return self._read_chunked(amt) - + if amt is None: # unbounded read if self.will_close: @@ -441,7 +441,7 @@ class HTTPResponse: self.close() return value - + def _safe_read(self, amt): """Read the number of bytes requested, compensating for partial reads. |