summaryrefslogtreecommitdiff
path: root/roundcubemail/index.php
diff options
context:
space:
mode:
authorroundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-04-13 18:07:45 +0000
committerroundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-04-13 18:07:45 +0000
commitc07a04591f3f55f83ca23b2fde0317b692dc1e24 (patch)
treec87667c08ad35053b19cd9e317f6578f1a1f0929 /roundcubemail/index.php
parent4095194cbb4973cd69f8dc4011d28cc5733c8eeb (diff)
Added gzip compression support
git-svn-id: https://svn.roundcube.net/trunk@193 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/index.php')
-rw-r--r--roundcubemail/index.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/roundcubemail/index.php b/roundcubemail/index.php
index 9bc0e63f1..0c98e8aca 100644
--- a/roundcubemail/index.php
+++ b/roundcubemail/index.php
@@ -42,7 +42,6 @@
define('RCMAIL_VERSION', '0.1-20060402');
-
// define global vars
$CHARSET = 'UTF-8';
$OUTPUT_TYPE = 'html';
@@ -82,6 +81,10 @@ require_once('PEAR.php');
// set PEAR error handling
// PEAR::setErrorHandling(PEAR_ERROR_TRIGGER, E_USER_NOTICE);
+// use gzip compression if supported
+if (function_exists('ob_gzhandler'))
+ ob_start('ob_gzhandler');
+
// catch some url/post parameters
$_auth = get_input_value('_auth', RCUBE_INPUT_GPC);