From 149319ffb86c7665c358d9133352303140fe733c Mon Sep 17 00:00:00 2001 From: kookxiang Date: Sat, 22 Jun 2024 21:22:12 +0800 Subject: [PATCH] fix authorization header --- Emby.Plugin.Bangumi/BangumiApi.Emby.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Emby.Plugin.Bangumi/BangumiApi.Emby.cs b/Emby.Plugin.Bangumi/BangumiApi.Emby.cs index 35ee8f4..c76bbd8 100644 --- a/Emby.Plugin.Bangumi/BangumiApi.Emby.cs +++ b/Emby.Plugin.Bangumi/BangumiApi.Emby.cs @@ -54,7 +54,7 @@ private async Task SendRequest(string method, HttpRequestOptions options { var options = new HttpRequestOptions { Url = url }; if (accessToken != null) - options.RequestHeaders.Add("Authorization", accessToken); + options.RequestHeaders.Add("c", $"Bearer {accessToken}"); var jsonString = await SendRequest("GET", options); return JsonSerializer.Deserialize(jsonString, Options); }