[wp-trac] [WordPress Trac] #40347: WP_REST_Request::remove_header() does not canonicalize header name

WordPress Trac noreply at wordpress.org
Sun May 7 04:08:44 UTC 2017


#40347: WP_REST_Request::remove_header() does not canonicalize header name
--------------------------------------+-----------------------
 Reporter:  TimothyBlynJacobs         |       Owner:  joehoyle
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  4.8
Component:  REST API                  |     Version:  4.4
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:  rest-api
--------------------------------------+-----------------------
Changes (by joehoyle):

 * owner:   => joehoyle
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"40577"]:
 {{{
 #!CommitTicketReference repository="" revision="40577"
 REST API: WP_REST_Request::remove_header() should canonicalize header
 names.

 When headers are stored in WP_REST_Request internally they are
 canonicalized. This step already happens on setting / getting headers in
 any way, but was missed when implementing remove_header().

 Props TimothyBlynJacobs.
 Fixes #40347.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40347#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list