1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-25 22:46:31 -04:00

New: Add headers setting in webhook connection

This commit is contained in:
Gauthier
2024-11-15 04:01:05 +01:00
committed by GitHub
parent 6677fd1116
commit 78fb20282d
14 changed files with 295 additions and 3 deletions
@@ -43,6 +43,11 @@ namespace NzbDrone.Core.Notifications.Webhook
request.Credentials = new BasicNetworkCredential(settings.Username, settings.Password);
}
foreach (var header in settings.Headers)
{
request.Headers.Add(header.Key, header.Value);
}
_httpClient.Execute(request);
}
catch (HttpException ex)