diff --git a/updater.exe b/updater.exe index cdfa422..d769941 100644 Binary files a/updater.exe and b/updater.exe differ diff --git a/updater.py b/updater.py index 3395628..d4af951 100644 --- a/updater.py +++ b/updater.py @@ -21,6 +21,7 @@ import colorama import tqdm import urllib +import binascii # Helpers functions @@ -248,10 +249,12 @@ def _check_version_from_http(self, headers): remote_version = None if 'last-modified' in headers: - remote_version = headers['last-modified'] + input_bytes = headers['last-modified'].encode() + remote_version = str(binascii.crc32(input_bytes)) elif 'content-length' in headers: print('{0}: using "content-length" as version number...'.format(self.name)) - remote_version = headers['content-length'] + input_bytes = headers['content-length'].encode() + remote_version = str(binascii.crc32(input_bytes)) else: raise Exception(colorama.Fore.RED + '{0}: no header is found with which to determine if there is an update'.format(self.name))