Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Soapwood committed Jul 24, 2024
2 parents 8e88497 + 96f3c65 commit d14a264
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion VXAutoUpdater/Core/VXMusicAutoUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ public async Task<bool> 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"));

Expand Down

0 comments on commit d14a264

Please sign in to comment.