Set the correct header for non POST request to xmlrpc service. Fixes #9093 props joesphscott.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10571 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5ed02dc0ed
commit
b6a97077f1
|
@ -301,6 +301,7 @@ class IXR_Server {
|
||||||
if (!$data) {
|
if (!$data) {
|
||||||
global $HTTP_RAW_POST_DATA;
|
global $HTTP_RAW_POST_DATA;
|
||||||
if (!$HTTP_RAW_POST_DATA) {
|
if (!$HTTP_RAW_POST_DATA) {
|
||||||
|
header( 'Content-Type: text/plain' );
|
||||||
die('XML-RPC server accepts POST requests only.');
|
die('XML-RPC server accepts POST requests only.');
|
||||||
}
|
}
|
||||||
$data = $HTTP_RAW_POST_DATA;
|
$data = $HTTP_RAW_POST_DATA;
|
||||||
|
|
Loading…
Reference in New Issue