From 852bb008182c012bae6d53c8c8c8f83d1ec9445a Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Wed, 3 May 2006 05:05:02 +0000 Subject: Patch #1480067: don't redirect HTTP digest auth in urllib2 --- Lib/urllib2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v0.12