]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Patch #754340: Fix typo in redirect_request.
authorMartin v. Löwis <martin@v.loewis.de>
Sat, 14 Jun 2003 05:52:27 +0000 (05:52 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sat, 14 Jun 2003 05:52:27 +0000 (05:52 +0000)
Lib/urllib2.py

index 84680d0a32ff2b5ea28110e747bfb661cc3045ec..0ea7b6c1a7df2ec9ea5dcd2e450a9f3e9d9e9420 100644 (file)
@@ -426,7 +426,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