Send correct status. Props yonosoytu. see #7361

git-svn-id: https://develop.svn.wordpress.org/trunk@9861 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-11-24 20:21:09 +00:00
parent 681aec1e1c
commit cffae5aabf
1 changed files with 1 additions and 1 deletions

View File

@ -1392,7 +1392,7 @@ EOD;
nocache_headers();
header('WWW-Authenticate: Basic realm="WordPress Atom Protocol"');
header("HTTP/1.1 401 $msg");
header('Status: ' . $msg);
header('Status: 401 ' . $msg);
header('Content-Type: text/html');
$content = <<<EOD
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">