Browse Source

Merge pull request #1019 from PLCHome/master

Communication error behind an HTTPS proxy
jomjol 3 years ago
parent
commit
fa59b5ba6c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      sd-card/html/gethost.js

+ 1 - 1
sd-card/html/gethost.js

@@ -20,7 +20,7 @@ function getbasepath(){
     }
     }
     else
     else
     {
     {
-        host = "http://" + host;
+        host = window.location.protocol + "//" + host;
         if (window.location.port != "") {
         if (window.location.port != "") {
             host = host + ":" + window.location.port;
             host = host + ":" + window.location.port;
         }
         }