diff --git a/notifications/webhook.go b/notifications/webhook.go index 34274c3..8f166eb 100644 --- a/notifications/webhook.go +++ b/notifications/webhook.go @@ -49,6 +49,8 @@ func (w WebhookNotification) Notify(ctx context.Context, notification Notificati return fmt.Errorf("WebhookNotification::NotifyWithLog error creating request: %w", err) } + req.Header.Set("Content-Type", "application/json") + resp, err := w.client.Do(req) if err != nil { return fmt.Errorf("WebhookNotification::NotifyWithLog error while sending notification: %w", err)