mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-29 11:11:29 +00:00
send_local_file: add application/octet-stream hack
cached_url: return original requested filename to save as
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user