Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e9c996c1
Commit
e9c996c1
authored
Feb 12, 2008
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch #1966: Break infinite loop in httplib when the servers
implements the chunked encoding incorrectly.
parent
cab74c83
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
Lib/httplib.py
Lib/httplib.py
+4
-0
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/httplib.py
View file @
e9c996c1
...
...
@@ -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
...
...
Misc/NEWS
View file @
e9c996c1
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment