Skip to content

Commit ce2e037

Browse files
committed
fix: Forces the HTTP response code when using *cgi* sapi
1 parent 70d0a0e commit ce2e037

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/core/Common.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ function set_status_header($code = 200, $text = '')
566566

567567
if (strpos(PHP_SAPI, 'cgi') === 0)
568568
{
569-
header('Status: '.$code.' '.$text, TRUE);
569+
header('Status: '.$code.' '.$text, TRUE, $code);
570570
return;
571571
}
572572

0 commit comments

Comments
 (0)