changed protocol to match request

This commit is contained in:
Matthew Vale
2016-01-15 13:43:10 +00:00
parent 595f10ef2f
commit 93256a60ab

View File

@@ -553,7 +553,7 @@ require_once "resources/require.php";
else {
$domain_name = $_SESSION['domain_name'];
}
echo " window.location = 'https://".$domain_name."/app/provision?mac=".$device_mac_address."&file=' + d + '&content_type=application/octet-stream';\n";
echo " window.location = '".$_SERVER['REQUEST_SCHEME']."://".$domain_name."/app/provision?mac=$device_mac_address&file=' + d + '&content_type=application/octet-stream';\n";
echo " }\n";
echo "\n";