Update common.ts

This commit is contained in:
Richard C Lim 2025-02-03 21:21:43 -05:00 committed by GitHub
parent 247ef187f8
commit 3b100238bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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";