From 6317caa02eb661095ac0f537df58987cf425e587 Mon Sep 17 00:00:00 2001 From: Felix Ruhnow Date: Tue, 18 Jun 2019 19:38:59 +0200 Subject: [PATCH] replaced one more string defined Headername with Microsoft.Net.Http.Headers --- Jellyfin.Plugin.Slack/Api/ServerApiEntryPoints.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jellyfin.Plugin.Slack/Api/ServerApiEntryPoints.cs b/Jellyfin.Plugin.Slack/Api/ServerApiEntryPoints.cs index 334a192..34c02e2 100644 --- a/Jellyfin.Plugin.Slack/Api/ServerApiEntryPoints.cs +++ b/Jellyfin.Plugin.Slack/Api/ServerApiEntryPoints.cs @@ -7,6 +7,7 @@ using MediaBrowser.Model.Serialization; using MediaBrowser.Model.Services; using Microsoft.Extensions.Logging; +using Microsoft.Net.Http.Headers; namespace Jellyfin.Plugin.Slack.Api { @@ -49,7 +50,7 @@ public async Task Post(TestNotification request) { Url = options.WebHookUrl, RequestContent = _serializer.SerializeToString(parameters), - RequestHeaders = {["Content-type"] = "application/json"} + RequestHeaders = {[HeaderNames.ContentType] = "application/json"} }; await _httpClient.Post(httpRequest).ConfigureAwait(false);