diff --git a/system/CodeIgniter.php b/system/CodeIgniter.php index dd00746bf567..95be7771b281 100644 --- a/system/CodeIgniter.php +++ b/system/CodeIgniter.php @@ -979,8 +979,7 @@ protected function display404errors(PageNotFoundException $e) // Display 404 Errors $this->response->setStatusCode($e->getCode()); - echo $this->outputBufferingEnd(); - flush(); + $this->outputBufferingEnd(); // Throws new PageNotFoundException and remove exception message on production. throw PageNotFoundException::forPageNotFound(