Загрузить файлы в «venv/Lib/site-packages/fastapi/security»

This commit is contained in:
2026-07-02 18:20:59 +00:00
parent 8405f62800
commit be617ed2c8
2 changed files with 101 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
def get_authorization_scheme_param(
authorization_header_value: str | None,
) -> tuple[str, str]:
if not authorization_header_value:
return "", ""
scheme, _, param = authorization_header_value.partition(" ")
return scheme, param.strip()