Skip to content

Commit

Permalink
Set the content type to application/json
Browse files Browse the repository at this point in the history
  • Loading branch information
AchoArnold committed Oct 9, 2023
1 parent 1e0b170 commit 1a32fa8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/pkg/services/webhook_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ func (service *WebhookService) createRequest(ctx context.Context, event cloudeve
}

request.Header.Add("X-Event-Type", event.Type())
request.Header.Set("Content-Type", "application/json")

if strings.TrimSpace(webhook.SigningKey) != "" {
token, err := service.getAuthToken(webhook)
Expand Down

0 comments on commit 1a32fa8

Please sign in to comment.