Skip to content

Commit

Permalink
fix: Forces the HTTP response code when using *cgi* sapi
Browse files Browse the repository at this point in the history
  • Loading branch information
PROFeNoM committed Feb 13, 2024
1 parent 70d0a0e commit ce2e037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/core/Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ function set_status_header($code = 200, $text = '')

if (strpos(PHP_SAPI, 'cgi') === 0)
{
header('Status: '.$code.' '.$text, TRUE);
header('Status: '.$code.' '.$text, TRUE, $code);
return;
}

Expand Down

0 comments on commit ce2e037

Please sign in to comment.