Update common.ts

This commit is contained in:
Richard C Lim
2025-02-02 19:24:11 -05:00
committed by GitHub
parent 6b6fd6997d
commit 0703876b57

View File

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