From feedd0c2dbb4e129e1ebe89f0b53e55d39de5470 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 24 Apr 2019 15:21:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9Bob=20level=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Application.php | 4 ++++ 1 file changed, 4 insertions(+) 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();