Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AigioL committed Aug 28, 2021
1 parent 0502eda commit 2a9c532
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public void Enroll()
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;
Expand Down Expand Up @@ -410,7 +410,7 @@ public override void Sync()
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;

Expand Down Expand Up @@ -482,7 +482,7 @@ public void Restore(string serial, string restoreCode)
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;
Expand Down Expand Up @@ -566,7 +566,7 @@ public void Restore(string serial, string restoreCode)
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public override void Sync()
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;
Expand Down

0 comments on commit 2a9c532

Please sign in to comment.