From 4013663192eb94fd4519e22d0e6dc1fb61b15957 Mon Sep 17 00:00:00 2001 From: Jerome Jutteau Date: Sun, 22 Feb 2015 23:56:45 +0100 Subject: [PATCH 1/1] Fixes #3 Content type should always be put in headers --- f.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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']) -- 2.34.1