mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-29 01:59:19 +01:00
fix an other case of "Network error" when downloading as ZIP
This commit is contained in:
parent
5fffdf9baa
commit
022258cc85
@ -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();
|
Loading…
Reference in New Issue
Block a user