Convert Notifications from RestSharp to HttpClient

This commit is contained in:
Qstick
2020-04-08 22:52:14 -04:00
parent 39250abf7d
commit 4abf44617c
20 changed files with 201 additions and 406 deletions

View File

@@ -1,7 +1,6 @@
using NzbDrone.Common.Extensions;
using NzbDrone.Common.Http;
using NzbDrone.Common.Serializer;
using NzbDrone.Core.Rest;
namespace NzbDrone.Core.Notifications.Webhook
{
@@ -38,7 +37,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);
}