--- serendipity_event_staticpage.php.old 2011-04-29 13:51:22.000000000 +0200 +++ serendipity_event_staticpage.php 2011-07-28 16:28:58.000000000 +0200 @@ -1203,11 +1203,14 @@ global $serendipity; if ($this->selected()) { - if ($this->error_404 === FALSE) { - serendipity_header($_SERVER['SERVER_PROTOCOL'].' 200 OK'); - } - else { - serendipity_header($_SERVER['SERVER_PROTOCOL'].' 404 Not Found'); + $text = ($this->error_404) ? ' 404 Not Found' : ' 200 OK'; + switch (php_sapi_name()) { + case "cgi-fcgi": + serendipity_header('Status:'.$text); + break; + default: + serendipity_header($_SERVER['SERVER_PROTOCOL'].$text); + break; }