From: Georg Brandl Date: Sun, 26 Jun 2005 22:06:56 +0000 (+0000) Subject: backport bug [ 1155638 ] self.length shield exception in httplib X-Git-Tag: v2.4.2c1~162 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=59c9be28d43458c0875625623dac776aadb448f1;p=thirdparty%2FPython%2Fcpython.git backport bug [ 1155638 ] self.length shield exception in httplib --- diff --git a/Lib/httplib.py b/Lib/httplib.py index 01fc1eef8f76..e017cdfcd519 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())