From b6a97077f134447dd71e946fc646386a00aafbe1 Mon Sep 17 00:00:00 2001 From: westi Date: Sun, 15 Feb 2009 10:44:36 +0000 Subject: [PATCH] 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 --- wp-includes/class-IXR.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/class-IXR.php b/wp-includes/class-IXR.php index 00f4a0eb8..a4bcfbd57 100644 --- a/wp-includes/class-IXR.php +++ b/wp-includes/class-IXR.php @@ -301,6 +301,7 @@ class IXR_Server { if (!$data) { global $HTTP_RAW_POST_DATA; if (!$HTTP_RAW_POST_DATA) { + header( 'Content-Type: text/plain' ); die('XML-RPC server accepts POST requests only.'); } $data = $HTTP_RAW_POST_DATA;