trying Ryan's suggestion for #3215

git-svn-id: http://svn.automattic.com/wordpress/trunk@4513 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2006-11-22 04:58:31 +00:00
parent 49281a1caf
commit 16998c6bb3
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");
}
}