From b527d3e57d5757d6f8f9a4670c0e75af7f12bfb9 Mon Sep 17 00:00:00 2001 From: Jan-Henrik Bruhn Date: Mon, 4 Mar 2024 12:03:55 +0100 Subject: [PATCH] Fix openepaperlink.eu proxy on https proxies (#251) --- ESP32_AP-Flasher/wwwroot/ota.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ESP32_AP-Flasher/wwwroot/ota.js b/ESP32_AP-Flasher/wwwroot/ota.js index 4b700ff88..61f089a1e 100644 --- a/ESP32_AP-Flasher/wwwroot/ota.js +++ b/ESP32_AP-Flasher/wwwroot/ota.js @@ -167,7 +167,7 @@ export async function updateWebpage(fileUrl, tagname, showReload) { print("Updating littleFS partition..."); - fetch("http://openepaperlink.eu/getupdate/?url=" + fileUrl) + fetch("//openepaperlink.eu/getupdate/?url=" + fileUrl) .then(response => response.json()) .then(data => { checkfiles(data); @@ -271,7 +271,7 @@ export async function updateESP(fileUrl, showConfirm) { while (retryCount < maxRetries) { try { - const response = await fetch("http://openepaperlink.eu/getupdate/?url=" + fileUrl + "&env=" + env); + const response = await fetch("//openepaperlink.eu/getupdate/?url=" + fileUrl + "&env=" + env); const responseBody = await response.text(); if (!response.ok) { throw new Error("Network response was not OK: " + responseBody); @@ -389,7 +389,7 @@ $('#selectRepo').onclick = function (event) { const filesJsonAsset = assets.find(asset => asset.name === 'filesystem.json'); const binariesJsonAsset = assets.find(asset => asset.name === 'binaries.json'); if (filesJsonAsset && binariesJsonAsset) { - const updateUrl = "http://openepaperlink.eu/getupdate/?url=" + binariesJsonAsset.browser_download_url + "&env=" + $('#repo').value; + const updateUrl = "//openepaperlink.eu/getupdate/?url=" + binariesJsonAsset.browser_download_url + "&env=" + $('#repo').value; return fetch(updateUrl); } else { throw new Error("Json file binaries.json and/or filesystem.json not found in the release assets");