optimise download file

This commit is contained in:
Saleh Souzanchi 2013-10-28 01:03:06 +03:30
parent bfde2d136f
commit 459de09144

View file

@ -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)) {