From c926e2f1d30b6e49456be2270c4b929993c802df Mon Sep 17 00:00:00 2001 From: Ahmed Walid <34550324+ahmed605@users.noreply.github.com> Date: Wed, 8 Apr 2020 16:31:10 +0200 Subject: [PATCH] Fix update checker returns old version --- SRC/SparkIV/Updater.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/SRC/SparkIV/Updater.cs b/SRC/SparkIV/Updater.cs index 9831ecd..06386fb 100644 --- a/SRC/SparkIV/Updater.cs +++ b/SRC/SparkIV/Updater.cs @@ -27,8 +27,8 @@ namespace SparkIV { public class Updater { - private const string VersionUrl = "https://pastebin.com/raw/M6nhwaBw"; - private const string UpdateUrl = "https://pastebin.com/raw/R3wJ0GQ7"; + private const string VersionUrl = "https://raw.githubusercontent.com/ahmed605/SparkIV/master/Config/version.txt"; + private const string UpdateUrl = "https://raw.githubusercontent.com/ahmed605/SparkIV/master/Config/url.txt"; private const string DownloadListUrl = "https://github.com/ahmed605/SparkIV/releases"; public static void CheckForUpdate() @@ -107,6 +107,7 @@ private static string GetWebString(string url) try { var client = new System.Net.WebClient(); + client.CachePolicy = new System.Net.Cache.RequestCachePolicy(System.Net.Cache.RequestCacheLevel.NoCacheNoStore); result = client.DownloadString(url); } catch (Exception ex) @@ -133,4 +134,4 @@ private static string GetWebString(string url) return result; } } -} \ No newline at end of file +}