Skip to content

Commit e3b67bc

Browse files
committed
Patch #754340: Fix typo in redirect_request. Will backport to 2.2.
1 parent 3efa04a commit e3b67bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/urllib2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ def redirect_request(self, req, fp, code, msg, headers, newurl):
438438
# do the same.
439439
return Request(newurl, headers=req.headers)
440440
else:
441-
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
441+
raise HTTPError(req.get_full_url(), code, msg, headers, fp)
442442

443443
# Implementation note: To avoid the server sending us into an
444444
# infinite loop, the request object needs to track what URLs we

0 commit comments

Comments
 (0)