trying Ryan's suggestion for #3215

git-svn-id: https://develop.svn.wordpress.org/trunk@4513 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2006-11-22 04:58:31 +00:00
parent ce1cb37f34
commit 608fd4e44f
2 changed files with 4 additions and 3 deletions

View File

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

View File

@ -270,7 +270,8 @@ function wp_redirect($location, $status = 302) {
if ( $is_IIS ) {
header("Refresh: 0;url=$location");
} else {
status_header($status); // This causes problems on IIS
if ( php_sapi_name() != 'cgi-fcgi' )
status_header($status); // This causes problems on IIS and some FastCGI setups
header("Location: $location");
}
}