mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-09-27 21:56:38 +08:00
Update common.ts
This commit is contained in:
parent
6b6fd6997d
commit
0703876b57
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user