mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
bug [ 1155638 ] self.length shield exception in httplib
This commit is contained in:
parent
8d457c78b4
commit
0aade9a9f9
1 changed files with 1 additions and 0 deletions
|
@ -353,6 +353,7 @@ class HTTPResponse:
|
||||||
raise UnknownProtocol(version)
|
raise UnknownProtocol(version)
|
||||||
|
|
||||||
if self.version == 9:
|
if self.version == 9:
|
||||||
|
self.length = None
|
||||||
self.chunked = 0
|
self.chunked = 0
|
||||||
self.will_close = 1
|
self.will_close = 1
|
||||||
self.msg = HTTPMessage(StringIO())
|
self.msg = HTTPMessage(StringIO())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue