You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
\Symfony\Component\HttpClient\HttplugClient::sendPsr7Request overrides protocol version for any version other than 1.0 and sets http_version option as null. Where HttpClient chooses highest version available.
It is problem when target server does not support http2 and request fails.
How to reproduce
On server that supports http2 create request with version 1.1 and send it using \Symfony\Component\HttpClient\HttplugClient. The request will be made using http version 2.0 instead of requested 1.1.
Possible Solution
Stop overriding protocol version in \Symfony\Component\HttpClient\HttplugClient::sendPsr7Request