Commit 578ad877 authored by Senthil Kumaran's avatar Senthil Kumaran

merge heads

parents 61868ee7 7d71296d
...@@ -786,6 +786,9 @@ class HTTPConnection: ...@@ -786,6 +786,9 @@ class HTTPConnection:
line = response.fp.readline(_MAXLINE + 1) line = response.fp.readline(_MAXLINE + 1)
if len(line) > _MAXLINE: if len(line) > _MAXLINE:
raise LineTooLong("header line") raise LineTooLong("header line")
if not line:
# for sites which EOF without sending a trailer
break
if line == b'\r\n': if line == b'\r\n':
break break
......
...@@ -65,6 +65,9 @@ Core and Builtins ...@@ -65,6 +65,9 @@ Core and Builtins
Library Library
------- -------
- Issue #13684: Fix httplib tunnel issue of infinite loops for certain sites
which send EOF without trailing \r\n.
- Issue #14605: Add importlib.abc.FileLoader, importlib.machinery.(FileFinder, - Issue #14605: Add importlib.abc.FileLoader, importlib.machinery.(FileFinder,
SourceFileLoader, _SourcelessFileLoader, ExtensionFileLoader). SourceFileLoader, _SourcelessFileLoader, ExtensionFileLoader).
......
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