mirror of
https://github.com/ppy/osu.git
synced 2025-03-17 15:47:20 +08:00
Fix unauthenticated API requests no longer working
This commit is contained in:
parent
fd46a1773f
commit
8d0b32981f
@ -107,7 +107,8 @@ namespace osu.Game.Online.API
|
||||
WebRequest = CreateWebRequest();
|
||||
WebRequest.Failed += Fail;
|
||||
WebRequest.AllowRetryOnTimeout = false;
|
||||
WebRequest.AddHeader("Authorization", $"Bearer {API.AccessToken}");
|
||||
if (API.IsLoggedIn)
|
||||
WebRequest.AddHeader("Authorization", $"Bearer {API.AccessToken}");
|
||||
|
||||
if (isFailing) return;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user