Skip to content

Commit

Permalink
fix: cgi-fcgi status code
Browse files Browse the repository at this point in the history
  • Loading branch information
PROFeNoM committed Feb 14, 2024
1 parent 70d0a0e commit 551b855
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 @@ -564,7 +564,7 @@ function set_status_header($code = 200, $text = '')
}
}

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

0 comments on commit 551b855

Please sign in to comment.