[wp-trac] [WordPress Trac] #53513: WP_Http ignores httpversion option
WordPress Trac
noreply at wordpress.org
Fri Jun 25 14:21:12 UTC 2021
#53513: WP_Http ignores httpversion option
--------------------------+-----------------------------
Reporter: cocreation | Owner: (none)
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: HTTP API | Version: 5.7.2
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
[https://developer.wordpress.org/reference/classes/wp_http/request/
WP_Http::request()] uses the httpversion argument, which the documentation
says will set the HTTP protocol version of the request.
However when it calls
[https://developer.wordpress.org/reference/classes/requests/request/
Requests::request()], the httpversion option is never passed. Instead, it
uses protocol_version, as seen in
[https://developer.wordpress.org/reference/classes/requests/get_default_options/
Requests::get_default_options()].
Yet there is no way to set protocol_version, and it always defaults to
1.1.
It seems that httpversion is not actually used anywhere, and should be
updated to protocol_version.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53513>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list