Content-Type is ignored when passed as part of the header for WP_Http
|Reported by:||PeteMall||Owned by:||dd32|
Description (last modified by dd32)
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).
Change History (4)
- Keywords needs-patch removed
- Milestone changed from Future Release to 3.3