summaryrefslogtreecommitdiffstats
path: root/lib/files.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2012-05-15 11:57:24 +0200
committerArthur Schiwon <blizzz@owncloud.com>2012-05-15 11:57:24 +0200
commit01b366df804e4bde9061c4ace6e44f6146e49f27 (patch)
treeaed0e9706f0a87a4d9509d7c8ff8753a9bc9aa65 /lib/files.php
parent35effbcd3f7d0cb60d495241c2c2a366981787d4 (diff)
downloadnextcloud-server-01b366df804e4bde9061c4ace6e44f6146e49f27.tar.gz
nextcloud-server-01b366df804e4bde9061c4ace6e44f6146e49f27.zip
avoid corrupt ZIP files on lighttpd, should fix oc-467
Diffstat (limited to 'lib/files.php')
-rw-r--r--lib/files.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/files.php b/lib/files.php
index 5d4d73630eb..b405cf1749f 100644
--- a/lib/files.php
+++ b/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{