Skip to content

Commit

Permalink
Merge pull request ChatGPTNextWeb#5545 from ConnectAI-E/hotfix/google…
Browse files Browse the repository at this point in the history
…-auth-header

fix: build error
  • Loading branch information
Dogtiti authored Sep 27, 2024
2 parents d12a4ad + 3fb3895 commit 870ad91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/google.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ async function request(req: NextRequest, apiKey: string) {
"Cache-Control": "no-store",
"x-google-api-key":
req.headers.get("x-google-api-key") ||
(req.headers.get("Authorization") ?? "").replace("Bearer "),
(req.headers.get("Authorization") ?? "").replace("Bearer ", ""),
},
method: req.method,
body: req.body,
Expand Down

0 comments on commit 870ad91

Please sign in to comment.