Use AllowRetryOnTimeout where to maintain previous functionality

This commit is contained in:
smoogipoo 2017-10-30 17:28:53 +09:00
parent b59401357e
commit f94505243d

View File

@ -99,6 +99,7 @@ namespace osu.Game.Online.API
throw new TimeoutException(@"API request timeout hit");
WebRequest = CreateWebRequest();
WebRequest.AllowRetryOnTimeout = false;
WebRequest.Headers[@"Authorization"] = $@"Bearer {api.AccessToken}";
if (checkAndProcessFailure())