From d70544d788231e228e013ce471af4b5089358f82 Mon Sep 17 00:00:00 2001 From: Azeem Shaikh Date: Sun, 14 Aug 2022 03:31:50 +0000 Subject: [PATCH] Add request application/json request header --- signing/signing.go | 1 + 1 file changed, 1 insertion(+) diff --git a/signing/signing.go b/signing/signing.go index 2b6ea4c5..9590b44a 100644 --- a/signing/signing.go +++ b/signing/signing.go @@ -115,6 +115,7 @@ func ProcessSignature(jsonPayload []byte, repoName, repoRef, accessToken string) if err != nil { return fmt.Errorf("creating HTTP request: %w", err) } + req.Header.Set("Content-Type", "application/json") ctx, cancel := context.WithTimeout(req.Context(), 10*time.Second) defer cancel()