Skip to content

Commit

Permalink
Add request application/json request header (#791)
Browse files Browse the repository at this point in the history
  • Loading branch information
azeemshaikh38 committed Aug 14, 2022
1 parent f332b68 commit b3109e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions signing/signing.go
Expand Up @@ -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()
Expand Down

0 comments on commit b3109e5

Please sign in to comment.