From 0aade9a9f9e3901ae5e69184370d382bea375a6f Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 26 Jun 2005 22:06:54 +0000 Subject: [PATCH] bug [ 1155638 ] self.length shield exception in httplib --- Lib/httplib.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/httplib.py b/Lib/httplib.py index 01fc1eef8f..e017cdfcd5 100644 --- a/Lib/httplib.py +++ b/Lib/httplib.py @@ -353,6 +353,7 @@ class HTTPResponse: raise UnknownProtocol(version) if self.version == 9: + self.length = None self.chunked = 0 self.will_close = 1 self.msg = HTTPMessage(StringIO()) -- 2.40.0