Explorar o código

Communication error behind an HTTPS proxy

The device always requests via HTTP, not HTTPS
ChrisHanuta %!s(int64=3) %!d(string=hai) anos
pai
achega
67d47abde2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      sd-card/html/gethost.js

+ 1 - 1
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;
         }