WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#9093 closed defect (bug) (fixed)

XML-RPC error message Content-Type

Reported by: jidanni Owned by: josephscott
Milestone: 2.8 Priority: lowest
Severity: trivial Version:
Component: XML-RPC Keywords: has-patch commit
Focuses: Cc:

Description

No big deal, but

$ wwwoffle -O http://localhost/articles/xmlrpc.php
HTTP/1.0 200 OK
Date: Wed, 11 Feb 2009 00:49:58 GMT
Server: Apache/2.2.11 (Debian) PHP/5.2.6-3 with Suhosin-Patch
X-Powered-By: PHP/5.2.6-3
Content-Type: text/html
Connection: close
Proxy-Connection: close

XML-RPC server accepts POST requests only.

shouldn't the Content-Type be text/plain for this message? (Or use
HTML formatting.)

Attachments (1)

wp-includes--class-IXR.php.diff (496 bytes) - added by josephscott 5 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 jidanni5 years ago

  • Component changed from HTTP to XML-RPC
  • Owner set to josephscott

comment:2 josephscott5 years ago

Simple patch to make the content type of the error message text/plain instead of text/html.

comment:3 jacobsantos5 years ago

  • Keywords has-patch commit added

comment:4 westi5 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [10571]) Set the correct header for non POST request to xmlrpc service. Fixes #9093 props joesphscott.

Note: See TracTickets for help on using tickets.