summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2005-06-26 22:06:54 (GMT)
committerGeorg Brandl <georg@python.org>2005-06-26 22:06:54 (GMT)
commit0aade9a9f9e3901ae5e69184370d382bea375a6f (patch)
treeb149dbad40e854fa8d837d1b7af9f3fc5f312065
parent8d457c78b4bdaab7aab18ae91e8bc5f5e7484ba4 (diff)
downloadcpython-0aade9a9f9e3901ae5e69184370d382bea375a6f.zip
cpython-0aade9a9f9e3901ae5e69184370d382bea375a6f.tar.gz
cpython-0aade9a9f9e3901ae5e69184370d382bea375a6f.tar.bz2
bug [ 1155638 ] self.length shield exception in httplib
-rw-r--r--Lib/httplib.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/httplib.py b/Lib/httplib.py
index 01fc1ee..e017cdf 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())