fix(webhooks): send application/json header

This commit is contained in:
kolaente 2023-12-06 14:09:49 +01:00
parent 74e40ccfb4
commit 57bd5aca80
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 0 deletions

View File

@ -285,6 +285,7 @@ func (w *Webhook) sendWebhookPayload(p *WebhookPayload) (err error) {
}
req.Header.Add("User-Agent", "Vikunja/"+version.Version)
req.Header.Add("Content-Type", "application/json")
client := getWebhookHTTPClient()
res, err := client.Do(req)