diff --git a/pkg/util/httputils/httputils.go b/pkg/util/httputils/httputils.go index b973338f77..7bd318bc9f 100644 --- a/pkg/util/httputils/httputils.go +++ b/pkg/util/httputils/httputils.go @@ -225,7 +225,7 @@ func JSONRequest(client *http.Client, ctx context.Context, method THttpMethod, u if header == nil { header = http.Header{} } - header.Add("Content-Type", "application/json") + header.Set("Content-Type", "application/json") resp, err := Request(client, ctx, method, urlStr, header, jbody, debug) return ParseJSONResponse(resp, err, debug) }