[wp-trac] [WordPress Trac] #18982: Content-Type is ignored when passed as part of the header for WP_Http

WordPress Trac wp-trac at lists.automattic.com
Tue Oct 18 08:35:06 UTC 2011


#18982: Content-Type is ignored when passed as part of the header for WP_Http
--------------------------+-----------------------------
 Reporter:  PeteMall      |       Owner:  dd32
     Type:  defect (bug)  |      Status:  accepted
 Priority:  normal        |   Milestone:  Future Release
Component:  HTTP          |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |
--------------------------+-----------------------------
Description changed by dd32:

Old description:

> WP_Http::request() ignores the Content-Type in headers.

New description:

 If the body argument is offered up to WP_HTTP in the form of an Array or
 Object, It'll overwrite any Content-Type headers which were specifically
 set.

 We should respect all the headers which Developers pass to WP_HTTP (A
 notable exception would be the Content-Length header when an object/array
 is passed).

--

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18982#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list