[wp-trac] [WordPress Trac] #43605: Add HTTP/1.0 emulation to apiRequest()

WordPress Trac noreply at wordpress.org
Fri Oct 12 23:56:02 UTC 2018


#43605: Add HTTP/1.0 emulation to apiRequest()
-------------------------+-----------------------
 Reporter:  pento        |       Owner:  earnjam
     Type:  enhancement  |      Status:  assigned
 Priority:  normal       |   Milestone:  5.0
Component:  REST API     |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:  rest-api
-------------------------+-----------------------

Comment (by earnjam):

 It looks like the shim got replaced with the @wordpress/api-fetch package
 and has the HTTP/1.0 emulation covered as far as Gutenberg is concerned.
 ([https://github.com/WordPress/gutenberg/blob/master/packages/api-
 fetch/src/middlewares/http-v1.js see api-
 fetch/src/middlewares/http-v1.js])

 Do we still want to add this to `wp.apiRequest()` for 5.0? Doesn't seem
 like Gutenberg needs it anymore.

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


More information about the wp-trac mailing list