Changed code to support older Python versions
This commit is contained in:
parent
eb92d2d36f
commit
582458cdd0
5027 changed files with 794942 additions and 4 deletions
10
venv/lib/python3.11/site-packages/fastapi/security/utils.py
Normal file
10
venv/lib/python3.11/site-packages/fastapi/security/utils.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
from typing import Optional, Tuple
|
||||
|
||||
|
||||
def get_authorization_scheme_param(
|
||||
authorization_header_value: Optional[str],
|
||||
) -> Tuple[str, str]:
|
||||
if not authorization_header_value:
|
||||
return "", ""
|
||||
scheme, _, param = authorization_header_value.partition(" ")
|
||||
return scheme, param
|
||||
Loading…
Add table
Add a link
Reference in a new issue