Should fix download issues with gzip enabled - #723

This commit is contained in:
Andy Miller
2016-03-10 10:28:19 -07:00
parent 0716f96d8d
commit 9119ce8679

View File

@@ -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) {