mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
updating dispatcher for gzip handling of assets, fixes #3921
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6390 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
1c3d18db23
commit
c91b3721bc
1 changed files with 1 additions and 1 deletions
|
@ -656,7 +656,7 @@ class Dispatcher extends Object {
|
|||
}
|
||||
|
||||
if ($isAsset === true) {
|
||||
$ob = @ini_get("zlib.output_compression") && extension_loaded("zlib") && (strpos(env('HTTP_ACCEPT_ENCODING'), 'gzip') !== false);
|
||||
$ob = @ini_get("zlib.output_compression") !== true && extension_loaded("zlib") && (strpos(env('HTTP_ACCEPT_ENCODING'), 'gzip') !== false);
|
||||
|
||||
if ($ob && Configure::read('Asset.compress')) {
|
||||
ob_start();
|
||||
|
|
Loading…
Reference in a new issue