]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
backport bug [ 1155638 ] self.length shield exception in httplib
authorGeorg Brandl <georg@python.org>
Sun, 26 Jun 2005 22:06:56 +0000 (22:06 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 26 Jun 2005 22:06:56 +0000 (22:06 +0000)
Lib/httplib.py

index 01fc1eef8f760c5a9fd8891f054f82283bf047ae..e017cdfcd519e4df19270e2d9b1c23ae4c095a06 100644 (file)
@@ -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())