WordPress.org

Make WordPress Core

Changeset 10571


Ignore:
Timestamp:
02/15/09 10:44:36 (5 years ago)
Author:
westi
Message:

Set the correct header for non POST request to xmlrpc service. Fixes #9093 props joesphscott.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-IXR.php

    r10436 r10571  
    302302            global $HTTP_RAW_POST_DATA; 
    303303            if (!$HTTP_RAW_POST_DATA) { 
     304               header( 'Content-Type: text/plain' ); 
    304305               die('XML-RPC server accepts POST requests only.'); 
    305306            } 
Note: See TracChangeset for help on using the changeset viewer.