Merge pull request #1388 from mafoo/BugFix-Devices

BugFix to app/devices
This commit is contained in:
FusionPBX 2016-01-15 21:42:01 -07:00
commit 04813452a1
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";