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

index 78cb29c18fe60ca74b99dda9df037b632e009ada..1ebe6c0dd0060c895bda6ef19dc7175e9b004136 100644 (file)
@@ -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