From c3c0332536f63fce1bdd5ad040f7556ffa0513a5 Mon Sep 17 00:00:00 2001 From: fabrixxm Date: Thu, 3 Jan 2019 18:44:19 +0100 Subject: [PATCH] return default mimetype for unknown extensions --- src/Util/Mimetype.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Util/Mimetype.php b/src/Util/Mimetype.php index 658c4bd06e..b2d0e2641e 100644 --- a/src/Util/Mimetype.php +++ b/src/Util/Mimetype.php @@ -1077,8 +1077,7 @@ class Mimetype if (array_key_exists($ext, $mime_types)) { return $mime_types[$ext]; } - } else { - return 'application/octet-stream'; } + return 'application/octet-stream'; } }