From c8b3d6b178059fb1d1fc7a6fbcacaead170dcecf Mon Sep 17 00:00:00 2001 From: DingZQ Date: Sun, 22 Jun 2025 23:21:48 +0800 Subject: [PATCH] Refine --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 61e7f51..ff768c5 100644 --- a/main.py +++ b/main.py @@ -60,7 +60,7 @@ async def global_auth(request: Request): # return # 验证 token = request.headers.get("Authorization") - if token != "Bear 567e33c876a2": + if token != "Bearer 567e33c876a2": raise HTTPException(status_code=401, detail="Invalid token") # 全局依赖项