Skip to content

Commit

Permalink
fix(exception-handler): сheck buffer before clean (#152)
Browse files Browse the repository at this point in the history
Co-authored-by: QWp6t <[email protected]>
  • Loading branch information
valeravilks and QWp6t authored Dec 14, 2021
1 parent d70a422 commit f2cefb7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Roots/Acorn/Bootstrap/HandleExceptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ protected function hasHandler()
*/
protected function renderHttpResponse(Throwable $e)
{
ob_end_clean();
if (ob_get_length()) {
ob_end_clean();
}

parent::renderHttpResponse($e);
}
}

0 comments on commit f2cefb7

Please sign in to comment.