From 2a9c53239bc719fa31dfe1779955d97b044ea343 Mon Sep 17 00:00:00 2001 From: Aigio Liu Date: Sat, 28 Aug 2021 16:38:49 +0800 Subject: [PATCH] fix --- .../Values/BattleNetAuthenticator.Compat_WinAuth3.cs | 8 ++++---- .../Values/GoogleAuthenticator.Compat_WinAuth3.cs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ST.Services.CloudService/Models/GAPAuthenticators/Values/BattleNetAuthenticator.Compat_WinAuth3.cs b/src/ST.Services.CloudService/Models/GAPAuthenticators/Values/BattleNetAuthenticator.Compat_WinAuth3.cs index 4e7bc51cd..b9dae1d2d 100644 --- a/src/ST.Services.CloudService/Models/GAPAuthenticators/Values/BattleNetAuthenticator.Compat_WinAuth3.cs +++ b/src/ST.Services.CloudService/Models/GAPAuthenticators/Values/BattleNetAuthenticator.Compat_WinAuth3.cs @@ -303,7 +303,7 @@ namespace System.Application.Models byte[]? responseData = null; try { - var request = GeneralHttpClientFactory(GetMobileUrl(region) + ENROLL_PATH); + var request = GeneralHttpClientFactory.Create(GetMobileUrl(region) + ENROLL_PATH); request.Method = "POST"; request.ContentType = "application/octet-stream"; request.ContentLength = encrypted.Length; @@ -410,7 +410,7 @@ namespace System.Application.Models try { // create a connection to time sync server - var request = GeneralHttpClientFactory(GetMobileUrl(Region) + SYNC_PATH); + var request = GeneralHttpClientFactory.Create(GetMobileUrl(Region) + SYNC_PATH); request.Method = "GET"; request.Timeout = 5000; @@ -482,7 +482,7 @@ namespace System.Application.Models var serialBytes = Encoding.UTF8.GetBytes(serial.ToUpper().Replace("-", string.Empty)); // send the request to the server to get our challenge - var request = GeneralHttpClientFactory(GetMobileUrl(serial) + RESTORE_PATH); + var request = GeneralHttpClientFactory.Create(GetMobileUrl(serial) + RESTORE_PATH); request.Method = "POST"; request.ContentType = "application/octet-stream"; request.ContentLength = serialBytes.Length; @@ -566,7 +566,7 @@ namespace System.Application.Models Array.Copy(encrypted, 0, postbytes, serialBytes.Length, encrypted.Length); // send the challenge response back to the server - request = GeneralHttpClientFactory(GetMobileUrl(serial) + RESTOREVALIDATE_PATH); + request = GeneralHttpClientFactory.Create(GetMobileUrl(serial) + RESTOREVALIDATE_PATH); request.Method = "POST"; request.ContentType = "application/octet-stream"; request.ContentLength = postbytes.Length; diff --git a/src/ST.Services.CloudService/Models/GAPAuthenticators/Values/GoogleAuthenticator.Compat_WinAuth3.cs b/src/ST.Services.CloudService/Models/GAPAuthenticators/Values/GoogleAuthenticator.Compat_WinAuth3.cs index 07f804d25..0d5d3c5d0 100644 --- a/src/ST.Services.CloudService/Models/GAPAuthenticators/Values/GoogleAuthenticator.Compat_WinAuth3.cs +++ b/src/ST.Services.CloudService/Models/GAPAuthenticators/Values/GoogleAuthenticator.Compat_WinAuth3.cs @@ -81,7 +81,7 @@ namespace System.Application.Models try { // we use the Header response field from a request to www.google.come - HttpWebRequest request = GeneralHttpClientFactory(TIME_SYNC_URL); + HttpWebRequest request = GeneralHttpClientFactory.Create(TIME_SYNC_URL); request.Method = "GET"; request.ContentType = "text/html"; request.Timeout = 5000;