From a7d9137a5dcadc82a178394b35a885ce37a8d19e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Tue, 3 Aug 2004 13:00:52 +0000 Subject: [PATCH] Patch #994595: Recognize Basic auth even if other schemes are offered. --- Lib/urllib2.py | 2 +- Misc/NEWS | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Lib/urllib2.py b/Lib/urllib2.py index d136485cd012..e45978ed1422 100644 --- a/Lib/urllib2.py +++ b/Lib/urllib2.py @@ -631,7 +631,7 @@ class AbstractBasicAuthHandler: # XXX could be multiple headers authreq = headers.get(authreq, None) if authreq: - mo = AbstractBasicAuthHandler.rx.match(authreq) + mo = AbstractBasicAuthHandler.rx.search(authreq) if mo: scheme, realm = mo.groups() if scheme.lower() == 'basic': diff --git a/Misc/NEWS b/Misc/NEWS index 033db637534c..df53b7682b1a 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -43,6 +43,9 @@ Extension modules Library ------- +- Patch #994595: urllib2 now recognizes Basic authentication even if + other authentication schemes are offered. + - Bug #993394. A KeyError was being raised by Thread.__delete() for dummy_threading when called by atexit if an instance of Thread was created in an interpreter running in -O. The exception was of no importance and thus is -- 2.47.3