mirror of
https://github.com/getgrav/grav.git
synced 2026-05-08 23:26:55 +02:00
Should fix download issues with gzip enabled - #723
This commit is contained in:
@@ -241,6 +241,10 @@ abstract class Utils
|
||||
ignore_user_abort(false);
|
||||
|
||||
// fix corrupted files
|
||||
if (Grav::instance()['config']->get('system.cache.gzip')) {
|
||||
// Flush gzhandler buffer if gzip setting was enabled.
|
||||
ob_end_clean();
|
||||
}
|
||||
ob_clean();
|
||||
|
||||
if ($force_download) {
|
||||
|
||||
Reference in New Issue
Block a user