Skip to content

Commit 28c5637

Browse files
authored
feat: use ApiKey instead of Bearer
as this part of the documentation says https://www.elastic.co/guide/en/cloud/current/ec-api-authentication.html
1 parent 4d6e2cb commit 28c5637

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/clients/fleet/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func (t *transport) RoundTrip(req *http.Request) (*http.Response, error) {
9999
}
100100

101101
if t.APIKey != "" {
102-
req.Header.Add("Authorization", "Bearer "+t.APIKey)
102+
req.Header.Add("Authorization", "ApiKey "+t.APIKey)
103103
}
104104

105105
return t.next.RoundTrip(req)

0 commit comments

Comments
 (0)