From 347f9a3edabe2a33d53f2bdcdb6cca30a6772b18 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Fri, 10 Jun 2022 04:41:10 +0200 Subject: [PATCH] [contents] Add MIME type for mp3 (#2809) Without this, format tests fail on systems without `/etc/mime.types`. --- lib/contents.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/contents.php b/lib/contents.php index 304d394e..69d0ceeb 100644 --- a/lib/contents.php +++ b/lib/contents.php @@ -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')) {