summaryrefslogtreecommitdiffstats
path: root/Lib/urllib
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2010-02-24 16:56:20 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2010-02-24 16:56:20 (GMT)
commitefcd883735af264ff6acbb642e2d2e3fb50b8e81 (patch)
treeb05b0d5f46240a79b94019ff273067bd64495cc1 /Lib/urllib
parentf2387da424269d2b124a009c6778ebd2ed5abd50 (diff)
downloadcpython-efcd883735af264ff6acbb642e2d2e3fb50b8e81.zip
cpython-efcd883735af264ff6acbb642e2d2e3fb50b8e81.tar.gz
cpython-efcd883735af264ff6acbb642e2d2e3fb50b8e81.tar.bz2
Merged revisions 78426 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r78426 | senthil.kumaran | 2010-02-24 22:23:16 +0530 (Wed, 24 Feb 2010) | 9 lines Merged revisions 78422 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r78422 | senthil.kumaran | 2010-02-24 22:15:46 +0530 (Wed, 24 Feb 2010) | 2 lines Fix for Issue3819 - urllib2 sends Basic auth across redirects ........ ................
Diffstat (limited to 'Lib/urllib')
-rw-r--r--Lib/urllib/request.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py
index 9e02962..d1d12e6 100644
--- a/Lib/urllib/request.py
+++ b/Lib/urllib/request.py
@@ -795,7 +795,7 @@ class AbstractBasicAuthHandler:
auth = "Basic " + base64.b64encode(raw.encode()).decode("ascii")
if req.headers.get(self.auth_header, None) == auth:
return None
- req.add_header(self.auth_header, auth)
+ req.add_unredirected_header(self.auth_header, auth)
return self.parent.open(req, timeout=req.timeout)
else:
return None