Gotify token as query parameter

Signed-off-by: Robin Dadswell <robin@dadswell.email>
pull/770/head
Qstick 4 years ago
parent 7842acc76e
commit f73b9491ad

@ -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)
{
}
}

@ -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)
{

Loading…
Cancel
Save