From eae92463100a02b4b4088bd39adb3d1910c88031 Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Wed, 6 Nov 2024 01:07:39 +0100 Subject: [PATCH] Update http headers --- cli/agent/bitwarden/http.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/agent/bitwarden/http.go b/cli/agent/bitwarden/http.go index 3fef11d..cdaefc3 100644 --- a/cli/agent/bitwarden/http.go +++ b/cli/agent/bitwarden/http.go @@ -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 {