Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

optimise download file

  • Loading branch information...
commit 459de09144c17b57b85fc4cb0dabd3f68bf81a6f 1 parent bfde2d1
@zoghal zoghal authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/Cake/Network/CakeResponse.php
View
1  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)) {
Please sign in to comment.
Something went wrong with that request. Please try again.