Potential patch for #8

This commit is contained in:
Andrew S. Rightenburg 2023-04-27 02:56:20 -04:00
parent f71f002f2c
commit f290cbc691
Signed by: rail5
GPG key ID: A0CB570AB6629159

View file

@ -38,6 +38,8 @@ if (!$realFile) {
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: public");
header('Content-Type: application/octet-stream');
header("Content-Transfer-Encoding: Binary");
header("Content-disposition: attachment; filename=\"" .$fileName. "\"");
header("Content-length: " . filesize($filename));
readfile($fetched[0]);