1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-24 23:23:34 +00:00

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

This commit is contained in:
fox
2020-11-05 15:40:42 +00:00
committed by Gogs

View File

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