mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
interfaces: part two (actual fix) (actual fix)
This commit is contained in:
parent
01cdf46908
commit
8a73ea0af2
@ -160,8 +160,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
header("Content-Type: application/octet-stream");
|
||||
header("Content-Disposition: attachment; filename={$bfilename}");
|
||||
header("Content-Length: ".filesize($filename));
|
||||
header('Content-Transfer-Encoding: binary');
|
||||
$file = fopen($filename, 'rb');
|
||||
fpassthru($fp);
|
||||
fpassthru($file);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user