mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-16 05:53:42 +08:00
Update common.ts
This commit is contained in:
@@ -21,7 +21,7 @@ const isAzure = req.nextUrl.pathname.includes("azure/deployments") || Boolean(se
|
|||||||
.replaceAll("Bearer ", "")
|
.replaceAll("Bearer ", "")
|
||||||
.trim() ?? "";
|
.trim() ?? "";
|
||||||
|
|
||||||
authHeaderName = "api-key";
|
authHeaderName = "Authorization";
|
||||||
} else {
|
} else {
|
||||||
authValue = req.headers.get("Authorization") ?? "";
|
authValue = req.headers.get("Authorization") ?? "";
|
||||||
authHeaderName = "Authorization";
|
authHeaderName = "Authorization";
|
||||||
|
|||||||
Reference in New Issue
Block a user