Specify that we are sending JSON

This commit is contained in:
2024-02-12 17:10:02 +13:00
parent ddd6326a6e
commit adf83e7782

View File

@@ -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)