From eb894c50cad6459ede55cf40e98d76cd4e9f3574 Mon Sep 17 00:00:00 2001 From: ralf Date: Fri, 22 Apr 2022 11:00:09 +0200 Subject: [PATCH] fix an other case of "Network error" when downloading as ZIP --- api/src/Vfs.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/api/src/Vfs.php b/api/src/Vfs.php index 931975dd37..a2359cb400 100644 --- a/api/src/Vfs.php +++ b/api/src/Vfs.php @@ -1504,12 +1504,6 @@ class Vfs extends Vfs\Base //error_log("Total files: " . $total_files . " Peak memory to zip: " . self::hsize(memory_get_peak_usage(true))); - // Stop any buffering - while(ob_get_level() > 0) - { - ob_end_clean(); - } - // Stream the file to the client header("Content-Type: application/zip"); header("Content-Length: " . filesize($zip_file)); @@ -2433,4 +2427,4 @@ class Vfs extends Vfs\Base } } -Vfs::init_static(); +Vfs::init_static(); \ No newline at end of file