Skip to content

Commit 16bf813

Browse files
committed
fix bearer auth
1 parent 49a100b commit 16bf813

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internals/discovery/discovery.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func SendDiff(serverName, endpoint, key string, diff Diff[string]) (*http.Respon
9999
req.Header.Set("Content-Type", "application/json")
100100

101101
if key != "" {
102-
req.Header.Set("Authorization", key)
102+
req.Header.Set("Authorization", "Bearer " + key)
103103
}
104104

105105
resp, err := client.Do(req)

0 commit comments

Comments
 (0)