Commit 7ad3cb4a authored by Martin v. Löwis's avatar Martin v. Löwis

Patch #754340: Fix typo in redirect_request. Will backport to 2.2.

parent ab142839
......@@ -438,7 +438,7 @@ class HTTPRedirectHandler(BaseHandler):
# do the same.
return Request(newurl, headers=req.headers)
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
# infinite loop, the request object needs to track what URLs we
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment