summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2005-06-26 22:06:56 (GMT)
committerGeorg Brandl <georg@python.org>2005-06-26 22:06:56 (GMT)
commit59c9be28d43458c0875625623dac776aadb448f1 (patch)
tree5ecdbcb0fa4276fe2634d58c03648e745f33e3d3 /Lib
parent7ddd42a57a2d63704f7caf30293fb6df9e4acfe3 (diff)
downloadcpython-59c9be28d43458c0875625623dac776aadb448f1.zip
cpython-59c9be28d43458c0875625623dac776aadb448f1.tar.gz
cpython-59c9be28d43458c0875625623dac776aadb448f1.tar.bz2
backport bug [ 1155638 ] self.length shield exception in httplib
Diffstat (limited to 'Lib')
-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())