Skip to content

Commit 1d1b50e

Browse files
authored
fix: add mysterious apikey header (#3931)
1 parent 1cf9098 commit 1d1b50e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/fetcher/gateway.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,9 @@ func withAuthToken(token string) FetcherOption {
2424
}
2525
return WithRequestEditor(header)
2626
}
27-
return WithBearerToken(token)
27+
header := func(req *http.Request) {
28+
req.Header.Add("apikey", token)
29+
req.Header.Add("Authorization", "Bearer "+token)
30+
}
31+
return WithRequestEditor(header)
2832
}

0 commit comments

Comments
 (0)