Make WordPress Core

Opened 3 months ago

#53513 assigned defect (bug)

WP_Http ignores httpversion option

Reported by: cocreation Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.7.2
Component: HTTP API Keywords:
Focuses: Cc:


WP_Http::request() uses the httpversion argument, which the documentation says will set the HTTP protocol version of the request.

However when it calls Requests::request(), the httpversion option is never passed. Instead, it uses protocol_version, as seen in 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.

Change History (0)

Note: See TracTickets for help on using tickets.