diff --git a/src/Application.php b/src/Application.php index 201a59e..ca01378 100644 --- a/src/Application.php +++ b/src/Application.php @@ -40,6 +40,10 @@ public function worker($connection) ->setPathinfo($pathinfo) ->withInput($GLOBALS['HTTP_RAW_REQUEST_DATA']); + while (ob_get_level() > 1) { + ob_end_clean(); + } + ob_start(); $response = $this->http->run(); $content = ob_get_clean();