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 de113750f4
commit 9782723b1d

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');