avoid corrupt ZIP files on lighttpd, should fix oc-467
This commit is contained in:
parent
35effbcd3f
commit
01b366df80
|
@ -102,6 +102,7 @@ class OC_Files {
|
||||||
header('Content-Transfer-Encoding: binary');
|
header('Content-Transfer-Encoding: binary');
|
||||||
OC_Response::disableCaching();
|
OC_Response::disableCaching();
|
||||||
if($zip){
|
if($zip){
|
||||||
|
ini_set('zlib.output_compression', 'off');
|
||||||
header('Content-Type: application/zip');
|
header('Content-Type: application/zip');
|
||||||
header('Content-Length: ' . filesize($filename));
|
header('Content-Length: ' . filesize($filename));
|
||||||
}else{
|
}else{
|
||||||
|
|
Loading…
Reference in New Issue