Opened 9 years ago
Closed 9 years ago
#40347 closed defect (bug) (fixed)
WP_REST_Request::remove_header() does not canonicalize header name
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.8 | Priority: | normal |
| Severity: | normal | Version: | 4.4 |
| Component: | REST API | Keywords: | has-patch has-unit-tests |
| Focuses: | rest-api | Cc: |
Description
$request->add_header( 'Content-Type', 'application/json' ); $request->remove_header( 'Content-Type' ); $request->get_header( 'Content-Type' ); // still outputs 'application/json'
Patch incoming.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
In 40577: