Skip to content

Commit

Permalink
Fix updater ua
Browse files Browse the repository at this point in the history
  • Loading branch information
Milkitic committed Dec 31, 2023
1 parent 52b9d54 commit 8db9584
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions KeyAsio.Gui/Utils/Updater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static string GetVersion()
if (json == null) return null;
if (json.Contains("API rate limit"))
{
Logger.Error("Error while checking for updates: Github API rate limit exceeded.");
Logger.Error("Error while checking for updates: Github API rate limit exceeded. Please retry later.");
return null;
}

Expand Down Expand Up @@ -102,7 +102,7 @@ static Updater()
Timeout = TimeSpan.FromMilliseconds(Timeout)
};
HttpClient.DefaultRequestHeaders.Add("User-Agent",
"ozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36");
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36");
}

private static async Task<string?> HttpGetAsync(string url)
Expand Down

0 comments on commit 8db9584

Please sign in to comment.