possible solution for #3215

git-svn-id: http://svn.automattic.com/wordpress/trunk@4445 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2006-11-03 02:42:47 +00:00
parent db789c6f59
commit 5cd38edafe
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() {