summaryrefslogtreecommitdiffstats
path: root/Lib/urllib/request.py
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2010-02-24 16:53:16 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2010-02-24 16:53:16 (GMT)
commitca2fc9eb1fd987b8885d7126f2b541a6c2636d53 (patch)
treeda4cb1ce852691d443f3e2473aa6339b305788f5 /Lib/urllib/request.py
parent0facd77015465ac7bd486f5cb98d6265f61428a9 (diff)
downloadcpython-ca2fc9eb1fd987b8885d7126f2b541a6c2636d53.zip
cpython-ca2fc9eb1fd987b8885d7126f2b541a6c2636d53.tar.gz
cpython-ca2fc9eb1fd987b8885d7126f2b541a6c2636d53.tar.bz2
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/request.py')
-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 07a7ee6..b9de479 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