Skip to content
Snippets Groups Projects
Commit 01b366df authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

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

parent 35effbcd
No related branches found
No related tags found
No related merge requests found
......@@ -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{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment