You've already forked ddns-updater
Specify that we are sending JSON
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user