switching off zlib.output_compression for zip archives, as the double compression makes problems eg. with lighttpd

This commit is contained in:
Ralf Becker 2009-08-26 09:38:51 +00:00
parent 8e5de9e041
commit 4f4f58b159

View File

@ -988,6 +988,11 @@ class HTTP_WebDAV_Server
if (!isset($options['mimetype'])) {
$options['mimetype'] = "application/octet-stream";
}
// switching off zlib.output_compression for zip archives, as the double compression makes problems eg. with lighttpd
if ($options['mimetype'] == 'application/zip')
{
ini_set('zlib.output_compression',0);
}
header("Content-type: $options[mimetype]");
if (isset($options['mtime'])) {