summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-08-17 10:11:53 +0300
committerAndrew Dolgov <[email protected]>2018-08-17 10:11:53 +0300
commit04ad631a08e33c30ba506ed07e93f1815434018d (patch)
tree074baeabb80f67ab631adcca3d3ed80c9b47c7f9 /include
parent611aeb71970b73c070563079b7cc694e191eb358 (diff)
parent3a46529a7329574efd694a6e9fe2828614e7ee2c (diff)
Merge branch 'master' of git.fakecake.org:tt-rss
Diffstat (limited to 'include')
-rwxr-xr-xinclude/functions.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php
index 7ebbe38b3..b6e49716c 100755
--- a/include/functions.php
+++ b/include/functions.php
@@ -2574,6 +2574,13 @@
}
$mimetype = mime_content_type($filename);
+
+ // this is hardly ideal but 1) only media is cached in images/ and 2) seemingly only mp4
+ // video files are detected as octet-stream by mime_content_type()
+
+ if ($mimetype == "application/octet-stream")
+ $mimetype = "video/mp4";
+
header("Content-type: $mimetype");
$stamp = gmdate("D, d M Y H:i:s", filemtime($filename)) . " GMT";