Opened 14 years ago
Closed 14 years ago
#18982 closed defect (bug) (fixed)
Content-Type is ignored when passed as part of the header for WP_Http
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.3 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | HTTP API | Keywords: | |
| Focuses: | Cc: |
Description (last modified by )
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)
Note: See
TracTickets for help on using
tickets.
In [19000]: