From: Jerome Jutteau Date: Sun, 22 Feb 2015 22:56:45 +0000 (+0100) Subject: Fixes #3 Content type should always be put in headers X-Git-Tag: 1.1~168 X-Git-Url: https://git.p6c8.net/jirafeau.git/commitdiff_plain/4013663192eb94fd4519e22d0e6dc1fb61b15957?ds=sidebyside Fixes #3 Content type should always be put in headers --- diff --git a/f.php b/f.php index 6f8f836..7faf028 100644 --- a/f.php +++ b/f.php @@ -222,8 +222,7 @@ header ('Content-Length: ' . $link['file_size']); if (!jirafeau_is_viewable ($link['mime_type']) || !$cfg['preview'] || $button_download) header ('Content-Disposition: attachment; filename="' . $link['file_name'] . '"'); -else - header ('Content-Type: ' . $link['mime_type']); +header ('Content-Type: ' . $link['mime_type']); /* Read encrypted file. */ if ($link['crypted'])