bug #35210 [HttpClient] NativeHttpClient should not send >1.1 protocol version (nicolas-grekas)
This PR was merged into the 4.3 branch.
Discussion
----------
[HttpClient] NativeHttpClient should not send >1.1 protocol version
| Q | A
| ------------- | ---
| Branch? | 4.3
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | -
| License | MIT
| Doc PR | -
Commits
-------
8b61c95685
[HttpClient] NativeHttpClient should not send >1.1 protocol version
This commit is contained in:
commit
ccfc4b67b3
@ -170,7 +170,7 @@ final class NativeHttpClient implements HttpClientInterface, LoggerAwareInterfac
|
||||
|
||||
$context = [
|
||||
'http' => [
|
||||
'protocol_version' => $options['http_version'] ?: '1.1',
|
||||
'protocol_version' => min($options['http_version'] ?: '1.1', '1.1'),
|
||||
'method' => $method,
|
||||
'content' => $options['body'],
|
||||
'ignore_errors' => true,
|
||||
|
Reference in New Issue
Block a user