diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2012-05-15 11:57:24 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2012-05-15 11:57:24 +0200 |
commit | 01b366df804e4bde9061c4ace6e44f6146e49f27 (patch) | |
tree | aed0e9706f0a87a4d9509d7c8ff8753a9bc9aa65 /lib/files.php | |
parent | 35effbcd3f7d0cb60d495241c2c2a366981787d4 (diff) | |
download | nextcloud-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.php | 1 |
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{ |