From 860489726fd01f55a2f27455af436ea741628bf3 Mon Sep 17 00:00:00 2001 From: sepehr Date: Sun, 18 Aug 2024 20:54:24 +0330 Subject: [PATCH] use https instead of http in updater --- front-update.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/front-update.py b/front-update.py index 4fb35dd..97eba8b 100644 --- a/front-update.py +++ b/front-update.py @@ -142,7 +142,7 @@ def main(): "front":True, "version": version } - url="http://mikrowizard.com/wp-json/mikrowizard/v1/get_update" + url="https://mikrowizard.com/wp-json/mikrowizard/v1/get_update" # send post request to server mikrowizard.com with params in json response = requests.post(url, json=params) # get response from server @@ -171,7 +171,7 @@ def main(): extract_zip_reload("/usr/share/nginx/"+res['filename'],"/usr/share/nginx/") time.sleep(sleep_time) continue - download_url="http://mikrowizard.com/wp-json/mikrowizard/v1/download_update" + download_url="https://mikrowizard.com/wp-json/mikrowizard/v1/download_update" # send post request to server mikrowizard.com with params in json r = requests.post(download_url,json=params,stream=True) if "invalid" in r.text or r.text=='false':