mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
optimise download file
This commit is contained in:
parent
bfde2d136f
commit
459de09144
1 changed files with 1 additions and 0 deletions
|
@ -1296,6 +1296,7 @@ class CakeResponse {
|
|||
}
|
||||
$this->download($name);
|
||||
$this->header('Accept-Ranges', 'bytes');
|
||||
$this->header('Content-Transfer-Encoding', 'binary');
|
||||
|
||||
$httpRange = env('HTTP_RANGE');
|
||||
if (isset($httpRange)) {
|
||||
|
|
Loading…
Reference in a new issue