1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-24 22:36:19 -04:00

Convert Notifications from RestSharp to HttpClient

This commit is contained in:
Qstick
2020-04-08 22:52:14 -04:00
committed by Mark McDowall
parent 51528f63e9
commit 665b80f15c
14 changed files with 183 additions and 199 deletions
@@ -1,6 +1,5 @@
using NzbDrone.Common.Http;
using NzbDrone.Common.Serializer;
using NzbDrone.Core.Rest;
using NzbDrone.Common.Extensions;
namespace NzbDrone.Core.Notifications.Webhook
@@ -37,7 +36,7 @@ namespace NzbDrone.Core.Notifications.Webhook
}
_httpClient.Execute(request);
}
catch (RestException ex)
catch (HttpException ex)
{
throw new WebhookException("Unable to post to webhook: {0}", ex, ex.Message);
}