bug [ 1155638 ] self.length shield exception in httplib

This commit is contained in:
Georg Brandl 2005-06-26 22:06:54 +00:00
parent 8d457c78b4
commit 0aade9a9f9
1 changed files with 1 additions and 0 deletions

View 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())