We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c29f86 commit 7e70a5cCopy full SHA for 7e70a5c
Lib/http/client.py
@@ -563,7 +563,7 @@ def _read_chunked(self, amt):
563
# a vanishingly small number of sites EOF without
564
# sending the trailer
565
break
566
- if line == b"\r\n":
+ if line in (b'\r\n', b'\n', b''):
567
568
569
# we read everything; close the "file"
@@ -718,7 +718,7 @@ def _tunnel(self):
718
if not line:
719
# for sites which EOF without sending a trailer
720
721
- if line == b'\r\n':
722
723
724
def connect(self):
0 commit comments