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:
gwoo 2008-01-19 21:29:11 +00:00
parent 1c3d18db23
commit c91b3721bc

View file

@ -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();