diff --git a/src/AppsLauncherUpdater/Libraries/UserAgents.cs b/src/AppsLauncherUpdater/Libraries/UserAgents.cs index 5d68d5a..e345625 100644 --- a/src/AppsLauncherUpdater/Libraries/UserAgents.cs +++ b/src/AppsLauncherUpdater/Libraries/UserAgents.cs @@ -5,7 +5,7 @@ internal static class UserAgents { - internal static string Default { get; } = "Wget/1.16 (linux-gnu)"; + internal static string Default { get; } = $"Wget/1.{DateTime.Now:yy.M}"; internal static string Internal { get; } = $"Wget/{EnvironmentEx.Version} (Windows NT/{Environment.OSVersion.Version.Major}.{Environment.OSVersion.Version.Minor}; {(Environment.Is64BitOperatingSystem ? "Win64; x64" : "Win32; x86")}) {AssemblyInfo.Product}/{AssemblyInfo.Version}"; } diff --git a/src/AppsLauncherUpdater/Windows/MainForm.cs b/src/AppsLauncherUpdater/Windows/MainForm.cs index bc4677d..97b202d 100644 --- a/src/AppsLauncherUpdater/Windows/MainForm.cs +++ b/src/AppsLauncherUpdater/Windows/MainForm.cs @@ -55,9 +55,7 @@ private void SetChangeLog(params string[] mirrors) var path = PathEx.AltCombine(mirror, "ChangeLog.txt"); if (string.IsNullOrWhiteSpace(path)) continue; - if (!NetEx.FileIsAvailable(path, 60000, UserAgents.Internal)) - continue; - changes = WebTransfer.DownloadString(path, 60000, UserAgents.Internal); + changes = WebTransfer.DownloadString(path, 20000, UserAgents.Internal); if (!string.IsNullOrWhiteSpace(changes)) break; }