mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
Patch #994595: Recognize Basic auth even if other schemes are offered.
Will backport to 2.3.
This commit is contained in:
parent
7db57b3b41
commit
65a7975f16
2 changed files with 4 additions and 1 deletions
|
@ -714,7 +714,7 @@ class AbstractBasicAuthHandler:
|
||||||
# XXX could be multiple headers
|
# XXX could be multiple headers
|
||||||
authreq = headers.get(authreq, None)
|
authreq = headers.get(authreq, None)
|
||||||
if authreq:
|
if authreq:
|
||||||
mo = AbstractBasicAuthHandler.rx.match(authreq)
|
mo = AbstractBasicAuthHandler.rx.search(authreq)
|
||||||
if mo:
|
if mo:
|
||||||
scheme, realm = mo.groups()
|
scheme, realm = mo.groups()
|
||||||
if scheme.lower() == 'basic':
|
if scheme.lower() == 'basic':
|
||||||
|
|
|
@ -72,6 +72,9 @@ Extension modules
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- urllib2 now recognizes Basic authentication even if other authentication
|
||||||
|
schemes are offered.
|
||||||
|
|
||||||
- Bug #1001053. wave.open() now accepts unicode filenames.
|
- Bug #1001053. wave.open() now accepts unicode filenames.
|
||||||
|
|
||||||
- gzip.GzipFile has a new fileno() method, to retrieve the handle of the
|
- gzip.GzipFile has a new fileno() method, to retrieve the handle of the
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue