diff --git a/Lib/http/client.py b/Lib/http/client.py index 15c5cf634cf508..65ffda12e4bd62 100644 --- a/Lib/http/client.py +++ b/Lib/http/client.py @@ -275,6 +275,8 @@ def __init__(self, sock, debuglevel=0, method=None, url=None): self.length = _UNKNOWN # number of bytes left in response self.will_close = _UNKNOWN # conn will close at end of response + self.url = url + def _read_status(self): line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") if len(line) > _MAXLINE: