Add a missing = so that the file is only provided as a download when the content type is set to application/octet-stream in the url.

This commit is contained in:
markjcrane 2015-11-28 19:15:29 -07:00
parent 7e67cbc16f
commit 4d7688a3ef
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ openlog("fusion-provisioning", LOG_PID | LOG_PERROR, LOG_LOCAL0);
//deliver the customized config over HTTP/HTTPS
//need to make sure content-type is correct
if ($_REQUEST['content_type'] = 'application/octet-stream') {
if ($_REQUEST['content_type'] == 'application/octet-stream') {
$file_name = str_replace("{\$mac}",$mac,$file);
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');