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

remotes/origin/stable4
Arthur Schiwon 14 years ago
parent 35effbcd3f
commit 01b366df80
  1. 1
      lib/files.php

@ -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{

Loading…
Cancel
Save