switching off output compression for Lighttpd and HTTPS, as it makes problems with TB Lightning

This commit is contained in:
Ralf Becker 2011-09-16 15:35:08 +00:00
parent fb12d54854
commit a79e748ac2

View File

@ -1,6 +1,6 @@
<?php <?php
/** /**
* eGroupWare - GroupDAV access * EGroupware - CalDAV/CardDAV/GroupDAV server
* *
* Using the PEAR HTTP/WebDAV/Server class (which need to be installed!) * Using the PEAR HTTP/WebDAV/Server class (which need to be installed!)
* *
@ -9,10 +9,19 @@
* @package api * @package api
* @subpackage groupdav * @subpackage groupdav
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de> * @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
* @copyright (c) 2007-10 by Ralf Becker <RalfBecker-AT-outdoor-training.de> * @copyright (c) 2007-11 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
* @version $Id$ * @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); $starttime = microtime(true);
$GLOBALS['egw_info'] = array( $GLOBALS['egw_info'] = array(