diff options
Diffstat (limited to 'Lib/urllib2.py')
-rw-r--r-- | Lib/urllib2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/urllib2.py b/Lib/urllib2.py index 78cb29c..1ebe6c0 100644 --- a/Lib/urllib2.py +++ b/Lib/urllib2.py @@ -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 |