mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
switching off output compression for Lighttpd and HTTPS, as it makes problems with TB Lightning
This commit is contained in:
parent
2d494997ab
commit
de672f45aa
13
groupdav.php
13
groupdav.php
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* eGroupWare - GroupDAV access
|
||||
* EGroupware - CalDAV/CardDAV/GroupDAV server
|
||||
*
|
||||
* Using the PEAR HTTP/WebDAV/Server class (which need to be installed!)
|
||||
*
|
||||
@ -9,10 +9,19 @@
|
||||
* @package api
|
||||
* @subpackage groupdav
|
||||
* @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$
|
||||
*/
|
||||
|
||||
// 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(
|
||||
|
Loading…
Reference in New Issue
Block a user