summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-05-03 05:05:02 (GMT)
committerGeorg Brandl <georg@python.org>2006-05-03 05:05:02 (GMT)
commit852bb008182c012bae6d53c8c8c8f83d1ec9445a (patch)
tree91a63672d32501c0ce94c09c69dcc01bbf86ea1e
parenta3a13298b2759b68a19c8714491566b346325a66 (diff)
downloadcpython-852bb008182c012bae6d53c8c8c8f83d1ec9445a.zip
cpython-852bb008182c012bae6d53c8c8c8f83d1ec9445a.tar.gz
cpython-852bb008182c012bae6d53c8c8c8f83d1ec9445a.tar.bz2
Patch #1480067: don't redirect HTTP digest auth in urllib2
-rw-r--r--Lib/urllib2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/urllib2.py b/Lib/urllib2.py
index e90b61f..8d38504 100644
--- a/Lib/urllib2.py
+++ b/Lib/urllib2.py
@@ -858,7 +858,7 @@ class AbstractDigestAuthHandler:
auth_val = 'Digest %s' % auth
if req.headers.get(self.auth_header, None) == auth_val:
return None
- req.add_header(self.auth_header, auth_val)
+ req.add_unredirected_header(self.auth_header, auth_val)
resp = self.parent.open(req)
return resp