mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-11-24 08:42:19 +02:00
Fixed: Sending ntfy.sh notifications with unicode characters
Closes #6679
This commit is contained in:
parent
7fc3bebc91
commit
a169ebff2a
@ -2,7 +2,6 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
|
||||
using FluentValidation.Results;
|
||||
using NLog;
|
||||
using NzbDrone.Common.Extensions;
|
||||
@ -115,18 +114,18 @@ private void SendNotification(string title, string message, HttpRequestBuilder r
|
||||
{
|
||||
try
|
||||
{
|
||||
requestBuilder.Headers.Add("X-Title", title);
|
||||
requestBuilder.Headers.Add("X-Message", message);
|
||||
requestBuilder.Headers.Add("X-Priority", settings.Priority.ToString());
|
||||
requestBuilder.AddQueryParam("title", title);
|
||||
requestBuilder.AddQueryParam("message", message);
|
||||
requestBuilder.AddQueryParam("priority", settings.Priority.ToString());
|
||||
|
||||
if (settings.Tags.Any())
|
||||
{
|
||||
requestBuilder.Headers.Add("X-Tags", settings.Tags.Join(","));
|
||||
requestBuilder.AddQueryParam("tags", settings.Tags.Join(","));
|
||||
}
|
||||
|
||||
if (!settings.ClickUrl.IsNullOrWhiteSpace())
|
||||
{
|
||||
requestBuilder.Headers.Add("X-Click", settings.ClickUrl);
|
||||
requestBuilder.AddQueryParam("click", settings.ClickUrl);
|
||||
}
|
||||
|
||||
if (!settings.AccessToken.IsNullOrWhiteSpace())
|
||||
|
Loading…
Reference in New Issue
Block a user