[contents] Add MIME type for mp3 (#2809)

Without this, format tests fail on systems without `/etc/mime.types`.
This commit is contained in:
Jan Tojnar 2022-06-10 04:41:10 +02:00 committed by GitHub
parent 1af6cbeb1e
commit 347f9a3eda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -369,7 +369,8 @@ function getMimeType($url) {
'jpg' => 'image/jpeg', 'jpg' => 'image/jpeg',
'gif' => 'image/gif', 'gif' => 'image/gif',
'png' => 'image/png', 'png' => 'image/png',
'image' => 'image/*' 'image' => 'image/*',
'mp3' => 'audio/mpeg',
); );
// '@' is used to mute open_basedir warning, see issue #818 // '@' is used to mute open_basedir warning, see issue #818
if (@is_readable('/etc/mime.types')) { if (@is_readable('/etc/mime.types')) {