[wp-trac] [WordPress Trac] #37364: PHP Warning caused by \WP_Http::request, when body contains a JSON string

WordPress Trac noreply at wordpress.org
Wed Jul 20 12:47:11 UTC 2016


#37364: PHP Warning caused by \WP_Http::request, when body contains a JSON string
--------------------------+----------------------
 Reporter:  sciamannikoo  |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  HTTP API      |     Version:  trunk
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------
Changes (by rmccue):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  4.6 =>


Comment:

 GET doesn't support request bodies; technically speaking, clients,
 proxies, and servers are free to pretend it doesn't exist. It'd be nice if
 Requests didn't trigger a warning, but the usage is incorrect here.

 We should probably sanity-check the value in Requests. Closing the ticket
 out here as it's not a WP thing, but rather something inside Requests
 itself.

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


More information about the wp-trac mailing list