Skip to content

Commit

Permalink
fix: CI returns 200 OK to PageNotFound
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Oct 6, 2023
1 parent 83b64b4 commit 7f3b27a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions system/CodeIgniter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 7f3b27a

Please sign in to comment.