From 67d47abde277fea2ff181e499bc8fae246f628fa Mon Sep 17 00:00:00 2001 From: ChrisHanuta Date: Fri, 16 Sep 2022 10:18:40 +0200 Subject: [PATCH] Communication error behind an HTTPS proxy The device always requests via HTTP, not HTTPS --- sd-card/html/gethost.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sd-card/html/gethost.js b/sd-card/html/gethost.js index 349a6bec..d838b629 100644 --- a/sd-card/html/gethost.js +++ b/sd-card/html/gethost.js @@ -20,7 +20,7 @@ function getbasepath(){ } else { - host = "http://" + host; + host = window.location.protocol + "//" + host; if (window.location.port != "") { host = host + ":" + window.location.port; }