We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d12a4ad + 3fb3895 commit 870ad91Copy full SHA for 870ad91
app/api/google.ts
@@ -102,7 +102,7 @@ async function request(req: NextRequest, apiKey: string) {
102
"Cache-Control": "no-store",
103
"x-google-api-key":
104
req.headers.get("x-google-api-key") ||
105
- (req.headers.get("Authorization") ?? "").replace("Bearer "),
+ (req.headers.get("Authorization") ?? "").replace("Bearer ", ""),
106
},
107
method: req.method,
108
body: req.body,
0 commit comments