Ticket #20986: 20986.patch

File 20986.patch, 679 bytes (added by maxcutler, 11 months ago)
  • wp-includes/class-IXR.php

     
    369369    { 
    370370        if (!$data) { 
    371371            if (isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] !== 'POST') { 
    372                 header('Content-Type: text/plain'); // merged from WP #9093 
     372                header("HTTP/1.1 405 Method Not Allowed"); 
     373                header('Allow: POST'); 
     374                header('Content-Type: text/plain'); // merged from WP #9093 
    373375                die('XML-RPC server accepts POST requests only.'); 
    374376            } 
    375377