From: Martin v. Löwis Date: Sat, 14 Jun 2003 05:52:27 +0000 (+0000) Subject: Patch #754340: Fix typo in redirect_request. X-Git-Tag: 2.2~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7594a1c56e986f2a9d7f80ac54d650a6b301895f;p=thirdparty%2FPython%2Fcpython.git Patch #754340: Fix typo in redirect_request. --- diff --git a/Lib/urllib2.py b/Lib/urllib2.py index 84680d0a32ff..0ea7b6c1a7df 100644 --- a/Lib/urllib2.py +++ b/Lib/urllib2.py @@ -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