Skip to content
This repository was archived by the owner on Jun 17, 2022. It is now read-only.

Commit 6317caa

Browse files
committed
replaced one more string defined Headername with Microsoft.Net.Http.Headers
1 parent 26f693c commit 6317caa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Jellyfin.Plugin.Slack/Api/ServerApiEntryPoints.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using MediaBrowser.Model.Serialization;
88
using MediaBrowser.Model.Services;
99
using Microsoft.Extensions.Logging;
10+
using Microsoft.Net.Http.Headers;
1011

1112
namespace Jellyfin.Plugin.Slack.Api
1213
{
@@ -49,7 +50,7 @@ public async Task Post(TestNotification request)
4950
{
5051
Url = options.WebHookUrl,
5152
RequestContent = _serializer.SerializeToString(parameters),
52-
RequestHeaders = {["Content-type"] = "application/json"}
53+
RequestHeaders = {[HeaderNames.ContentType] = "application/json"}
5354
};
5455

5556
await _httpClient.Post(httpRequest).ConfigureAwait(false);

0 commit comments

Comments
 (0)