Opened 15 years ago
Closed 15 years ago
#18982 closed defect (bug) (fixed)
Content-Type is ignored when passed as part of the header for WP_Http
| Reported by: | PeteMall | Owned by: | dd32 |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.3 |
| Component: | HTTP API | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In [19000]: