From 4e29ac11c5b79649b9e180a9ae939e1f8e46c21c Mon Sep 17 00:00:00 2001 From: DingZQ Date: Sun, 22 Jun 2025 23:20:34 +0800 Subject: [PATCH] Add Bear to header check --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index fb844d9..61e7f51 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 != "567e33c876a2": + if token != "Bear 567e33c876a2": raise HTTPException(status_code=401, detail="Invalid token") # 全局依赖项