From 01b366df804e4bde9061c4ace6e44f6146e49f27 Mon Sep 17 00:00:00 2001
From: Arthur Schiwon <blizzz@owncloud.com>
Date: Tue, 15 May 2012 11:57:24 +0200
Subject: [PATCH] avoid corrupt ZIP files on lighttpd, should fix oc-467

---
 lib/files.php | 1 +
 1 file changed, 1 insertion(+)

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{
-- 
GitLab