Skip to content

Commit 870ad91

Browse files
authored
Merge pull request #5545 from ConnectAI-E/hotfix/google-auth-header
fix: build error
2 parents d12a4ad + 3fb3895 commit 870ad91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/api/google.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ async function request(req: NextRequest, apiKey: string) {
102102
"Cache-Control": "no-store",
103103
"x-google-api-key":
104104
req.headers.get("x-google-api-key") ||
105-
(req.headers.get("Authorization") ?? "").replace("Bearer "),
105+
(req.headers.get("Authorization") ?? "").replace("Bearer ", ""),
106106
},
107107
method: req.method,
108108
body: req.body,

0 commit comments

Comments
 (0)