Send correct status. Props yonosoytu. see #7361

git-svn-id: http://svn.automattic.com/wordpress/trunk@9861 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-11-24 20:21:09 +00:00
parent 0d27eeb5c2
commit a587695265
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">