changed protocol to match request

This commit is contained in:
Matthew Vale 2016-01-15 13:43:10 +00:00
parent fe9c46c0d0
commit 1502cf15ff
1 changed files with 1 additions and 1 deletions

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";