mirror of
https://github.com/python/cpython.git
synced 2025-09-13 12:17:24 +00:00
Patch #1966: Break infinite loop in httplib when the servers
implements the chunked encoding incorrectly. Will backport to 2.5.
This commit is contained in:
parent
8d365c323f
commit
dad88dc159
2 changed files with 7 additions and 0 deletions
|
@ -573,6 +573,10 @@ class HTTPResponse:
|
||||||
### note: we shouldn't have any trailers!
|
### note: we shouldn't have any trailers!
|
||||||
while True:
|
while True:
|
||||||
line = self.fp.readline()
|
line = self.fp.readline()
|
||||||
|
if not line:
|
||||||
|
# a vanishingly small number of sites EOF without
|
||||||
|
# sending the trailer
|
||||||
|
break
|
||||||
if line == '\r\n':
|
if line == '\r\n':
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
|
@ -400,6 +400,9 @@ Core and builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Patch #1966: Break infinite loop in httplib when the servers
|
||||||
|
implements the chunked encoding incorrectly.
|
||||||
|
|
||||||
- Rename rational.py to fractions.py and the rational.Rational class
|
- Rename rational.py to fractions.py and the rational.Rational class
|
||||||
to fractions.Fraction, to avoid the name clash with the abstract
|
to fractions.Fraction, to avoid the name clash with the abstract
|
||||||
base class numbers.Rational. See discussion in issue #1682.
|
base class numbers.Rational. See discussion in issue #1682.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue