[wp-trac] [WordPress Trac] #37456: HTTP API regression in transmitted content and headers

WordPress Trac noreply at wordpress.org
Tue Jul 26 22:41:04 UTC 2016


#37456: HTTP API regression in transmitted content and headers
--------------------------+--------------------
 Reporter:  Clorith       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.6
Component:  HTTP API      |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+--------------------

Comment (by dd32):

 This happens because
 [https://github.com/rmccue/Requests/blob/master/library/Requests.php#L344-L346
 Requests defaults to] `_GET`/`query` for HEAD/GET/DELETE and
 `_POST`/`body` for POST/PUT/OPTIONS/PATCH.

 @rmccue could explain why that is.. but I'm fairly sure to retain
 compatibility with WP_HTTP we should just force `data_format` to `body`
 for all non-GET/HEAD requests.

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


More information about the wp-trac mailing list