Commit e9c996c1 authored by Martin v. Löwis's avatar Martin v. Löwis

Patch #1966: Break infinite loop in httplib when the servers

implements the chunked encoding incorrectly.
parent cab74c83
......@@ -571,6 +571,10 @@ class HTTPResponse:
### note: we shouldn't have any trailers!
while True:
line = self.fp.readline()
if not line:
# a vanishingly small number of sites EOF without
# sending the trailer
break
if line == '\r\n':
break
......
......@@ -83,6 +83,9 @@ Core and builtins
Library
-------
- Patch #1966: Break infinite loop in httplib when the servers
implements the chunked encoding incorrectly.
- tarfile.py: Fix reading of xstar archives.
- #2021: Allow tempfile.NamedTemporaryFile to be used in with statements
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment