|
|
@ -22,13 +22,13 @@ namespace NzbDrone.Core.Notifications.Gotify
|
|
|
|
try
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var request = new HttpRequestBuilder(settings.Server).Post()
|
|
|
|
var request = new HttpRequestBuilder(settings.Server).Post()
|
|
|
|
.AddFormParameter("token", settings.AppToken)
|
|
|
|
.AddQueryParam("token", settings.AppToken)
|
|
|
|
.AddFormParameter("title", title)
|
|
|
|
.AddFormParameter("title", title)
|
|
|
|
.AddFormParameter("message", message)
|
|
|
|
.AddFormParameter("message", message)
|
|
|
|
.AddFormParameter("priority", settings.Priority)
|
|
|
|
.AddFormParameter("priority", settings.Priority)
|
|
|
|
.Build();
|
|
|
|
.Build();
|
|
|
|
|
|
|
|
|
|
|
|
_httpClient.Post(request);
|
|
|
|
_httpClient.Execute(request);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (HttpException ex)
|
|
|
|
catch (HttpException ex)
|
|
|
|
{
|
|
|
|
{
|
|
|
|