Merge branch 'allow-audio-cache' of johnjaylward/tt-rss into master

master release-2020-11-13-13-25
fox 4 years ago committed by Gogs
commit 242aa6e411

@ -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");

Loading…
Cancel
Save