From 96f3c65cf7f413be584a73daa0caef7eec9fe3ed Mon Sep 17 00:00:00 2001 From: Soapwood Date: Wed, 24 Jul 2024 09:56:21 +0100 Subject: [PATCH] [AutoUpdater] Authentication Error. Bearer token was being erronously added against Public GitHub endpoint. --- VXAutoUpdater/Core/VXMusicAutoUpdater.cs | 3 ++- VXMusicDesktop/VXMusicDesktop.csproj | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/VXAutoUpdater/Core/VXMusicAutoUpdater.cs b/VXAutoUpdater/Core/VXMusicAutoUpdater.cs index 971baa1..4baa7d8 100644 --- a/VXAutoUpdater/Core/VXMusicAutoUpdater.cs +++ b/VXAutoUpdater/Core/VXMusicAutoUpdater.cs @@ -133,7 +133,8 @@ public async Task DownloadUpdate(Release release) using (var httpClient = new HttpClient()) { - httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", _personalAccessToken); + if(!string.IsNullOrEmpty(_personalAccessToken)) + httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", _personalAccessToken); httpClient.DefaultRequestHeaders.UserAgent.Add(new ProductInfoHeaderValue("VXMusic", "1.0")); httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/octet-stream")); diff --git a/VXMusicDesktop/VXMusicDesktop.csproj b/VXMusicDesktop/VXMusicDesktop.csproj index f1cf058..b70df5f 100644 --- a/VXMusicDesktop/VXMusicDesktop.csproj +++ b/VXMusicDesktop/VXMusicDesktop.csproj @@ -9,7 +9,7 @@ VXLogo.png Images\VXLogoIcon.ico Always - 0.6.4.7 + 0.6.4.8 en VXMusicDesktop VirtualXtensions