From 01c0d4bbfd2cdc039c28d79debb2a3959d3b2631 Mon Sep 17 00:00:00 2001 From: John Aylward Date: Wed, 4 Nov 2020 14:34:37 -0500 Subject: [PATCH] allow audio to be sent to client from the cache --- classes/diskcache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/diskcache.php b/classes/diskcache.php index 6a8aa89c4..c56dc6f14 100644 --- a/classes/diskcache.php +++ b/classes/diskcache.php @@ -384,7 +384,7 @@ class DiskCache { $mimetype_blacklist = [ "image/svg+xml" ]; /* only serve video and images */ - if (!preg_match("/(image|video)\//", $mimetype) || in_array($mimetype, $mimetype_blacklist)) { + if (!preg_match("/(image|audio|video)\//", $mimetype) || in_array($mimetype, $mimetype_blacklist)) { http_response_code(400); header("Content-type: text/plain");