From adf83e77823abafbcbb41df5aa20f593be0a9c2f Mon Sep 17 00:00:00 2001 From: Aaron Guise Date: Mon, 12 Feb 2024 17:10:02 +1300 Subject: [PATCH] Specify that we are sending JSON --- notifications/webhook.go | 2 ++ 1 file changed, 2 insertions(+) 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)