diff options
author | Christian Schneider | 2012-06-20 13:19:10 +0000 |
---|---|---|
committer | Christian Schneider | 2012-06-20 13:19:10 +0000 |
commit | 33bd44fd181ee2d4366834bcdadecda0f6907822 (patch) | |
tree | e89c76283f5b16cd117a1286bff6ace44da58344 | |
parent | 5d3f9f0d2ba106d9992377d9f5a0ddb41db4de03 (diff) | |
download | itools-33bd44fd181ee2d4366834bcdadecda0f6907822.tar.gz itools-33bd44fd181ee2d4366834bcdadecda0f6907822.tar.bz2 itools-33bd44fd181ee2d4366834bcdadecda0f6907822.zip |
Remove manual ob_gzhandler, configure mod_deflate to handle all this
-rw-r--r-- | itjs.php | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -46,7 +46,6 @@ if (it::match('\.gif$', $file)) else if (it::match('\.css', $_SERVER['PHP_SELF'])) { header("Content-Type: text/css"); - ob_start('ob_gzhandler'); $data .= "\n#it_boot_dom { display:none }\n"; # Append magic style for it_boot if (!it::match('^devel', $GLOBALS['ULTRASERVERTYPE'])) $data = it::replace(array('[ \t]*([{};])[ \t]*' => '$1', '/\*.*?\*/' => ""), $data); @@ -55,14 +54,10 @@ else if (it::match('\.css', $_SERVER['PHP_SELF'])) } else if (it::match('\.htc$', $file)) { - ob_start('ob_gzhandler'); header("Content-Type: text/x-component"); } else if (!it::match('\.html$', $file)) { - if ($_REQUEST['boot'] && !$_REQUEST['retry']) - ob_start('ob_gzhandler'); - $charset = ini_get('default_charset') ?: 'iso-8859-1'; header("Content-Type: application/x-javascript; charset=$charset"); } |