Skip to content

Commit

Permalink
改进ob level判断
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Apr 24, 2019
1 parent 7f6e6e6 commit feedd0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit feedd0c

Please sign in to comment.