comparison mod_http_upload_external/share.php @ 3227:62c82d097017

mod_http_upload_external: share.php: Fix whitespace
author Matthew Wild <mwild1@gmail.com>
date Tue, 14 Aug 2018 18:20:59 +0100
parents 3b13f19652e2
children b0ad1604f77e
comparison
equal deleted inserted replaced
3226:3b13f19652e2 3227:62c82d097017
117 // Send file (using X-Sendfile would be nice here...) 117 // Send file (using X-Sendfile would be nice here...)
118 if(file_exists($store_file_name)) { 118 if(file_exists($store_file_name)) {
119 header('Content-Disposition: attachment'); 119 header('Content-Disposition: attachment');
120 header('Content-Type: application/octet-stream'); 120 header('Content-Type: application/octet-stream');
121 header('Content-Length: '.filesize($store_file_name)); 121 header('Content-Length: '.filesize($store_file_name));
122 header("Content-Security-Policy: \"default-src 'none'\""); 122 header("Content-Security-Policy: \"default-src 'none'\"");
123 header("X-Content-Security-Policy: \"default-src 'none'\""); 123 header("X-Content-Security-Policy: \"default-src 'none'\"");
124 header("X-WebKit-CSP: \"default-src 'none'\""); 124 header("X-WebKit-CSP: \"default-src 'none'\"");
125 if($request_method !== 'HEAD') { 125 if($request_method !== 'HEAD') {
126 readfile($store_file_name); 126 readfile($store_file_name);
127 } 127 }
128 } else { 128 } else {
129 header('HTTP/1.0 404 Not Found'); 129 header('HTTP/1.0 404 Not Found');