From: Georg Brandl Date: Wed, 3 May 2006 05:05:08 +0000 (+0000) Subject: Patch #1480067: don't redirect HTTP digest auth in urllib2 X-Git-Tag: v2.4.4c1~233 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d68e43a96a2a858c5b0ddd09f377a574d6ba4cd1;p=thirdparty%2FPython%2Fcpython.git Patch #1480067: don't redirect HTTP digest auth in urllib2 (backport from rev. 45879) --- diff --git a/Lib/urllib2.py b/Lib/urllib2.py index 33babe4bdfba..eaabd9c853b4 100644 --- a/Lib/urllib2.py +++ b/Lib/urllib2.py @@ -815,7 +815,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