use current protocol for niceurl test, see #632

This commit is contained in:
Shish 2018-11-06 00:02:07 +00:00
parent 9d3f4ea4b3
commit fc6fb3c6b8
2 changed files with 1 additions and 9 deletions

View File

@ -233,7 +233,7 @@ class Setup extends Extension {
$host .= ":" . $_SERVER["SERVER_PORT"];
}
}
$full = (@$_SERVER["HTTPS"] ? "https://" : "http://") . $host . $_SERVER["PHP_SELF"];
$full = "//" . $host . $_SERVER["PHP_SELF"];
$test_url = str_replace("/index.php", "/nicetest", $full);
$nicescript = "<script type='text/javascript'>

View File

@ -1,8 +0,0 @@
function getHTTPObject() {
if (window.XMLHttpRequest){
return new XMLHttpRequest();
}
else if(window.ActiveXObject){
return new ActiveXObject("Microsoft.XMLHTTP");
}
}