Fixed: Sending ntfy.sh notifications with unicode characters

(cherry picked from commit a169ebff2adda5c8585c6aae6249b1c1f7c12264)
pull/4741/head
Mark McDowall 9 months ago committed by Bogdan
parent ca0b900d92
commit 2941e0c4b7

@ -111,18 +111,18 @@ namespace NzbDrone.Core.Notifications.Ntfy
{
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…
Cancel
Save