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
3c4dcea7
Commit
3c4dcea7
authored
Dec 18, 2011
by
Charles-François Natali
Browse files
Options
Browse Files
Download
Plain Diff
Issue #8035: urllib: Fix a bug where the client could remain stuck after a
redirection or an error.
parents
6099a032
cf53ae21
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
Lib/urllib/request.py
Lib/urllib/request.py
+0
-2
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/urllib/request.py
View file @
3c4dcea7
...
...
@@ -1762,7 +1762,6 @@ class URLopener:
def
http_error_default
(
self
,
url
,
fp
,
errcode
,
errmsg
,
headers
):
"""Default error handler: close the connection and raise IOError."""
void
=
fp
.
read
()
fp
.
close
()
raise
HTTPError
(
url
,
errcode
,
errmsg
,
headers
,
None
)
...
...
@@ -1951,7 +1950,6 @@ class FancyURLopener(URLopener):
newurl
=
headers
[
'uri'
]
else
:
return
void
=
fp
.
read
()
fp
.
close
()
# In case the server sent a relative URL, join with original:
...
...
Misc/NEWS
View file @
3c4dcea7
...
...
@@ -419,6 +419,9 @@ Core and Builtins
Library
-------
-
Issue
#
8035
:
urllib
:
Fix
a
bug
where
the
client
could
remain
stuck
after
a
redirection
or
an
error
.
-
Issue
#
13560
:
os
.
strerror
()
now
uses
the
current
locale
encoding
instead
of
UTF
-
8.
...
...
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