Skip to content

Commit 7f3b27a

Browse files
committed
fix: CI returns 200 OK to PageNotFound
1 parent 83b64b4 commit 7f3b27a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

system/CodeIgniter.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -979,8 +979,7 @@ protected function display404errors(PageNotFoundException $e)
979979
// Display 404 Errors
980980
$this->response->setStatusCode($e->getCode());
981981

982-
echo $this->outputBufferingEnd();
983-
flush();
982+
$this->outputBufferingEnd();
984983

985984
// Throws new PageNotFoundException and remove exception message on production.
986985
throw PageNotFoundException::forPageNotFound(

0 commit comments

Comments
 (0)