mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +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
|
||||
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':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue