From 8cec06641bb946d9708663c0b5f05ec6a6d30e60 Mon Sep 17 00:00:00 2001 From: Bastian de Byl Date: Sun, 26 Feb 2023 02:46:38 -0500 Subject: [PATCH] added missing Accept header in Put() --- helper.go | 1 + 1 file changed, 1 insertion(+) diff --git a/helper.go b/helper.go index aee1df9..3739e3e 100644 --- a/helper.go +++ b/helper.go @@ -78,6 +78,7 @@ func Put(uri string, authName string, authValue string, data any) (*http.Respons client := &http.Client{} request.Header.Set("Content-Type", "application/json") + request.Header.Set("Accept", "application/json") request.Header.Set("Authorization", fmt.Sprintf("%s %s", authName, authValue)) response, err := client.Do(request)