[wp-trac] [WordPress Trac] #40347: WP_REST_Request::remove_header() does not canonicalize header name
WordPress Trac
noreply at wordpress.org
Mon Apr 3 17:34:48 UTC 2017
#40347: WP_REST_Request::remove_header() does not canonicalize header name
-------------------------------+-----------------------------
Reporter: TimothyBlynJacobs | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.4
Severity: normal | Keywords:
Focuses: rest-api |
-------------------------------+-----------------------------
{{{
$request->add_header( 'Content-Type', 'application/json' );
$request->remove_header( 'Content-Type' );
$request->get_header( 'Content-Type' ); // still outputs
'application/json'
}}}
Patch incoming.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40347>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list