mirror of
https://github.com/cnlimiter/codex-register.git
synced 2026-07-02 21:02:12 +08:00
Update src/web/routes/upload/newapi_services.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -70,7 +70,7 @@ def _to_response(svc) -> NewapiServiceResponse:
|
|||||||
|
|
||||||
def _validated_newapi_api_key(api_key: str) -> str:
|
def _validated_newapi_api_key(api_key: str) -> str:
|
||||||
try:
|
try:
|
||||||
return normalize_authorization_token(api_key)
|
return normalize_authorization_token(api_key, header_name="Root Token / API Key")
|
||||||
except ValueError as exc:
|
except ValueError as exc:
|
||||||
raise HTTPException(status_code=400, detail=str(exc)) from exc
|
raise HTTPException(status_code=400, detail=str(exc)) from exc
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user