mirror of https://github.com/python/cpython
Patch #754340: Fix typo in redirect_request. Will backport to 2.2.
This commit is contained in:
parent
3efa04a7e8
commit
e3b67bcb7e
|
@ -438,7 +438,7 @@ class HTTPRedirectHandler(BaseHandler):
|
||||||
# do the same.
|
# do the same.
|
||||||
return Request(newurl, headers=req.headers)
|
return Request(newurl, headers=req.headers)
|
||||||
else:
|
else:
|
||||||
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
|
raise HTTPError(req.get_full_url(), code, msg, headers, fp)
|
||||||
|
|
||||||
# Implementation note: To avoid the server sending us into an
|
# Implementation note: To avoid the server sending us into an
|
||||||
# infinite loop, the request object needs to track what URLs we
|
# infinite loop, the request object needs to track what URLs we
|
||||||
|
|
Loading…
Reference in New Issue