From e3b67bcb7e38ae29453f637b019de10adb8de360 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sat, 14 Jun 2003 05:51:25 +0000 Subject: [PATCH] Patch #754340: Fix typo in redirect_request. Will backport to 2.2. --- Lib/urllib2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/urllib2.py b/Lib/urllib2.py index 78cb29c18f..1ebe6c0dd0 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 -- 2.50.1