Skip to content

Commit 1a32fa8

Browse files
committed
Set the content type to application/json
1 parent 1e0b170 commit 1a32fa8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

api/pkg/services/webhook_service.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ func (service *WebhookService) createRequest(ctx context.Context, event cloudeve
246246
}
247247

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

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

0 commit comments

Comments
 (0)