From de672f45aad2ace19677bf136d546d3dba9100da Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 16 Sep 2011 15:34:26 +0000 Subject: [PATCH] switching off output compression for Lighttpd and HTTPS, as it makes problems with TB Lightning --- groupdav.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/groupdav.php b/groupdav.php index 77f6c952f5..fb76f619c8 100644 --- a/groupdav.php +++ b/groupdav.php @@ -1,6 +1,6 @@ - * @copyright (c) 2007-10 by Ralf Becker + * @copyright (c) 2007-11 by Ralf Becker * @version $Id$ */ +// switching off output compression for Lighttpd and HTTPS, as it makes problems with TB Lightning +if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' && + strpos($_SERVER['SERVER_SOFTWARE'],'lighttpd/1.4') === 0 && + strpos($_SERVER['HTTP_USER_AGENT'],'Lightning') !== false) +{ + ini_set('zlib.output_compression',0); +} +//error_log("HTTPS='$_SERVER[HTTPS]', SERVER_SOFTWARE='$_SERVER[SERVER_SOFTWARE]', HTTP_USER_AGENT='$_SERVER[HTTP_USER_AGENT]', REQUEST_METHOD='$_SERVER[REQUEST_METHOD]' --> zlib.output_compression=".ini_get('zlib.output_compression')); + $starttime = microtime(true); $GLOBALS['egw_info'] = array(