Skip to content
1 change: 1 addition & 0 deletions Lib/http/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ def isclosed(self):
return self.fp is None

def read(self, amt=None):
""" Read and return the response body, or up to the next amt bytes."""
if self.fp is None:
return b""

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add http.client.HTTPResponse.read docstring and fix help output.