fix(webhooks): don't send the proxy auth header to the webhook target

This commit is contained in:
kolaente 2023-10-17 20:01:20 +02:00
parent 177f367a8c
commit fc0029eed7
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -191,10 +191,6 @@ func (w *Webhook) sendWebhookPayload(p *WebhookPayload) (err error) {
req.Header.Add("User-Agent", "Vikunja/"+version.Version)
if config.WebhooksProxyURL.GetString() != "" && config.WebhooksProxyPassword.GetString() != "" {
req.Header.Add("Proxy-Authorization", base64.StdEncoding.EncodeToString([]byte(config.WebhooksProxyPassword.GetString())))
}
client := getWebhookHTTPClient()
_, err = client.Do(req)
if err == nil {