]> source.dussan.org Git - nextcloud-server.git/commitdiff
avoid corrupt ZIP files on lighttpd, should fix oc-467
authorArthur Schiwon <blizzz@owncloud.com>
Tue, 15 May 2012 09:57:24 +0000 (11:57 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Tue, 15 May 2012 09:57:24 +0000 (11:57 +0200)
lib/files.php

index 5d4d73630eb8d016af7ff33ad9cc50017c87b9e5..b405cf1749f73eef0187aa26932799acc71cd946 100644 (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{