# HG changeset patch # User Matthew Wild # Date 1530532579 -3600 # Node ID 5176b8d81ec7e0aece80cb5c430c000b84a120e1 # Parent 31b85864a6155908340c401e293e5d997cc6515b share_v2.php: Remove content-disposition if mime type is set diff -r 31b85864a615 -r 5176b8d81ec7 mod_http_upload_external/share_v2.php --- a/mod_http_upload_external/share_v2.php Mon Jul 02 12:55:59 2018 +0100 +++ b/mod_http_upload_external/share_v2.php Mon Jul 02 12:56:19 2018 +0100 @@ -128,8 +128,8 @@ $mime_type = file_get_contents($store_file_name.'-type'); if($mime_type === FALSE) { $mime_type = 'application/octet-stream'; + header('Content-Disposition: attachment'); } - header('Content-Disposition: attachment'); header('Content-Type: '.$mime_type); header('Content-Length: '.filesize($store_file_name)); header("Content-Security-Policy: \"default-src 'none'\"");