Skip to content

Commit

Permalink
[contents] Add MIME type for mp3 (#2809)
Browse files Browse the repository at this point in the history
Without this, format tests fail on systems without `/etc/mime.types`.
  • Loading branch information
jtojnar authored Jun 10, 2022
1 parent 1af6cbe commit 347f9a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/contents.php
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,8 @@ function getMimeType($url) {
'jpg' => 'image/jpeg',
'gif' => 'image/gif',
'png' => 'image/png',
'image' => 'image/*'
'image' => 'image/*',
'mp3' => 'audio/mpeg',
);
// '@' is used to mute open_basedir warning, see issue #818
if (@is_readable('/etc/mime.types')) {
Expand Down

0 comments on commit 347f9a3

Please sign in to comment.