mirror of
https://github.com/filp/whoops.git
synced 2026-09-24 01:00:30 +00:00
Move output buffer clearing to individual handlers
This commit is contained in:
@@ -71,6 +71,9 @@ class JsonResponseHandler extends Handler
|
||||
return Handler::DONE;
|
||||
}
|
||||
|
||||
// Remove any previous output
|
||||
ob_get_level() and ob_end_clean();
|
||||
|
||||
$exception = $this->getException();
|
||||
|
||||
$response = array(
|
||||
@@ -103,4 +106,4 @@ class JsonResponseHandler extends Handler
|
||||
echo json_encode($response);
|
||||
return Handler::QUIT;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user