Skip to content

Commit

Permalink
Update http headers
Browse files Browse the repository at this point in the history
  • Loading branch information
quexten committed Nov 6, 2024
1 parent 6cbebdf commit eae9246
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/agent/bitwarden/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ func makeAuthenticatedHTTPRequest(ctx context.Context, req *http.Request, recv i
req.Header.Set("Authorization", "Bearer "+token)
}
req.Header.Set("device-type", deviceType())
req.Header.Set("User-Agent", "Goldwarden (github.com/quexten/goldwarden)")
req.Header.Set("Bitwarden-Client-Name", "goldwarden")
req.Header.Set("Bitwarden-Client-Version", "0.0.0")

res, err := httpClient.Do(req)
if err != nil {
Expand Down

0 comments on commit eae9246

Please sign in to comment.