1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-11 12:02:35 +02:00

Fixed: Gotify token as query parameter

Fixes #4321
This commit is contained in:
Qstick 2020-04-19 13:47:45 -04:00
parent 8c4ac632ca
commit 6d87ce73b6
2 changed files with 9 additions and 4 deletions

View File

@ -10,8 +10,13 @@ public GotifyException(string message)
{
}
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)
{
}
}

View File

@ -22,13 +22,13 @@ public void SendNotification(string title, string message, GotifySettings settin
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)
{