diff --git a/src/NzbDrone.Core/Notifications/Gotify/GotifyException.cs b/src/NzbDrone.Core/Notifications/Gotify/GotifyException.cs index 35547460a..6e11411b4 100644 --- a/src/NzbDrone.Core/Notifications/Gotify/GotifyException.cs +++ b/src/NzbDrone.Core/Notifications/Gotify/GotifyException.cs @@ -10,8 +10,13 @@ namespace NzbDrone.Core.Notifications.Gotify { } - public GotifyException(string message, Exception innerException, params object[] args) - : base(message, innerException, args) + public GotifyException(string message, params object[] args) + : base(message, args) + { + } + + public GotifyException(string message, Exception innerException) + : base(message, innerException) { } } diff --git a/src/NzbDrone.Core/Notifications/Gotify/GotifyProxy.cs b/src/NzbDrone.Core/Notifications/Gotify/GotifyProxy.cs index c61147296..6baf71932 100644 --- a/src/NzbDrone.Core/Notifications/Gotify/GotifyProxy.cs +++ b/src/NzbDrone.Core/Notifications/Gotify/GotifyProxy.cs @@ -22,13 +22,13 @@ namespace NzbDrone.Core.Notifications.Gotify try { var request = new HttpRequestBuilder(settings.Server).Post() - .AddFormParameter("token", settings.AppToken) + .AddQueryParam("token", settings.AppToken) .AddFormParameter("title", title) .AddFormParameter("message", message) .AddFormParameter("priority", settings.Priority) .Build(); - _httpClient.Post(request); + _httpClient.Execute(request); } catch (HttpException ex) {