avoid corrupt ZIP files on lighttpd, should fix oc-467

This commit is contained in:
Arthur Schiwon 2012-05-15 11:57:24 +02:00
parent 35effbcd3f
commit 01b366df80
1 changed files with 1 additions and 0 deletions

View File

@ -102,6 +102,7 @@ class OC_Files {
header('Content-Transfer-Encoding: binary');
OC_Response::disableCaching();
if($zip){
ini_set('zlib.output_compression', 'off');
header('Content-Type: application/zip');
header('Content-Length: ' . filesize($filename));
}else{