From 75ce9c82e1727e60e9abb2f9ca3fc100feed80e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BC=94=E5=8F=98?= <67866187+cnlimiter@users.noreply.github.com> Date: Fri, 27 Mar 2026 15:06:19 +0800 Subject: [PATCH] Update src/web/routes/upload/newapi_services.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/web/routes/upload/newapi_services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/routes/upload/newapi_services.py b/src/web/routes/upload/newapi_services.py index d296ad7..17bfdbb 100644 --- a/src/web/routes/upload/newapi_services.py +++ b/src/web/routes/upload/newapi_services.py @@ -70,7 +70,7 @@ def _to_response(svc) -> NewapiServiceResponse: def _validated_newapi_api_key(api_key: str) -> str: try: - return normalize_authorization_token(api_key) + return normalize_authorization_token(api_key, header_name="Root Token / API Key") except ValueError as exc: raise HTTPException(status_code=400, detail=str(exc)) from exc