Permalink
Browse files

optimise download file

  • Loading branch information...
1 parent bfde2d1 commit 459de09144c17b57b85fc4cb0dabd3f68bf81a6f @zoghal zoghal committed Oct 27, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Cake/Network/CakeResponse.php
@@ -1296,6 +1296,7 @@ public function file($path, $options = array()) {
}
$this->download($name);
$this->header('Accept-Ranges', 'bytes');
+ $this->header('Content-Transfer-Encoding', 'binary');
$httpRange = env('HTTP_RANGE');
if (isset($httpRange)) {

0 comments on commit 459de09

Please sign in to comment.