Fixed gzip breaking the exception report.

This commit is contained in:
flash 2018-07-21 02:56:47 +02:00
parent e3ae2feb12
commit 2cec6349fc

View file

@ -182,7 +182,12 @@ MIG;
} }
} }
} else { } else {
ob_start($app->inDebugMode() ? null : 'ob_gzhandler'); if (!$app->inDebugMode()) {
ob_start('ob_gzhandler');
}
// we're running this again because ob_clean breaks gzip otherwise
ob_start();
$storage_dir = $app->getStoragePath(); $storage_dir = $app->getStoragePath();
if (!$storage_dir->isReadable() if (!$storage_dir->isReadable()