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:
parent
681aec1e1c
commit
cffae5aabf
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user