summaryrefslogtreecommitdiffstats
path: root/Lib/urllib2.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-06-14 05:51:25 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-06-14 05:51:25 (GMT)
commite3b67bcb7e38ae29453f637b019de10adb8de360 (patch)
treea71d695aad853ee7018fd02a7e1dfa1d30c7747a /Lib/urllib2.py
parent3efa04a7e828b280d393fdb5435638540422774a (diff)
downloadcpython-e3b67bcb7e38ae29453f637b019de10adb8de360.zip
cpython-e3b67bcb7e38ae29453f637b019de10adb8de360.tar.gz
cpython-e3b67bcb7e38ae29453f637b019de10adb8de360.tar.bz2
Patch #754340: Fix typo in redirect_request. Will backport to 2.2.
Diffstat (limited to 'Lib/urllib2.py')
-rw-r--r--Lib/urllib2.py2
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