Commit 14638375 authored by Martin v. Löwis's avatar Martin v. Löwis

Patch #994595: Recognize Basic auth even if other schemes are offered.

Will backport to 2.3.
parent 851dee2e
......@@ -714,7 +714,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':
......
......@@ -72,6 +72,9 @@ Extension modules
Library
-------
- urllib2 now recognizes Basic authentication even if other authentication
schemes are offered.
- Bug #1001053. wave.open() now accepts unicode filenames.
- gzip.GzipFile has a new fileno() method, to retrieve the handle of the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment