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:
Nicolas Grekas 2020-01-04 15:04:26 +01:00
commit ccfc4b67b3

View File

@ -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,