From 2cec6349fc1032371b10ec3d00b353fd7d335273 Mon Sep 17 00:00:00 2001 From: flashwave Date: Sat, 21 Jul 2018 02:56:47 +0200 Subject: [PATCH] Fixed gzip breaking the exception report. --- misuzu.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/misuzu.php b/misuzu.php index 918e0117..4d7271cf 100644 --- a/misuzu.php +++ b/misuzu.php @@ -182,7 +182,12 @@ MIG; } } } 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(); if (!$storage_dir->isReadable()