Update http headers

This commit is contained in:
Bernd Schoolmann 2024-11-06 01:07:39 +01:00
parent 6cbebdf6c7
commit eae9246310
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -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 {