possible solution for #3215

git-svn-id: https://develop.svn.wordpress.org/trunk@4445 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2006-11-03 02:42:47 +00:00
parent 24524f4d65
commit 697897019a
1 changed files with 4 additions and 2 deletions

View File

@ -775,8 +775,10 @@ function status_header( $header ) {
elseif ( 410 == $header )
$text = 'Gone';
@header("HTTP/1.1 $header $text");
@header("Status: $header $text");
if ( substr(php_sapi_name(), 0, 3) == 'cgi' )
@header("Status: $header $text");
else
@header("HTTP/1.1 $header $text");
}
function nocache_headers() {