Skip to content

Commit 16bf813

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)