mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-09-27 13:46:37 +08:00
Update common.ts
This commit is contained in:
parent
247ef187f8
commit
3b100238bc
@ -19,7 +19,7 @@ const isAzure = req.nextUrl.pathname.includes("azure/deployments") || Boolean(se
|
|||||||
?.trim()
|
?.trim()
|
||||||
.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