Merge branch '4.3' into 4.4

* 4.3:
  [HttpClient] NativeHttpClient should not send >1.1 protocol version
This commit is contained in:
Nicolas Grekas 2020-01-04 15:04:37 +01:00
commit 75c24bbdde

View File

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