return default mimetype for unknown extensions

This commit is contained in:
fabrixxm 2019-01-03 18:44:19 +01:00 committed by Hypolite Petovan
parent 14622c4bfd
commit c3c0332536
1 changed files with 1 additions and 2 deletions

View File

@ -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';
}
}