This commit is contained in:
pointfeev 2022-02-25 01:02:31 -05:00
parent 686bb4f50e
commit 7439b7213b
2 changed files with 1 additions and 5 deletions

View file

@ -16,7 +16,7 @@ internal static class HttpClientManager
internal static void Setup()
{
httpClient = new();
httpClient.DefaultRequestHeaders.Add("user-agent", "CreamInstaller");
httpClient.DefaultRequestHeaders.Add("user-agent", $"CreamInstaller-{Environment.MachineName}_{Environment.UserDomainName}_{Environment.UserName}");
}
internal static async Task<HtmlNodeCollection> GetDocumentNodes(string url, string xpath)

View file

@ -277,11 +277,7 @@ internal partial class SelectForm : CustomForm
{
if (!int.TryParse(node.Name, out int appId) || node.Parent is null && ProgramSelection.FromAppId(appId) is null) node.Remove();
});
//DateTime start = DateTime.Now;
await GetCreamApiApplicablePrograms(iProgress);
//DateTime end = DateTime.Now;
//TimeSpan t = end - start;
//new DialogForm(null).Show("GetCreamApiApplicablePrograms", SystemIcons.Information, "Gathering took " + t.ToString(@"mm\:ss"), "OK");
await SteamCMD.Cleanup();
HideProgressBar();