[HttpClient] NativeHttpClient should not send >1.1 protocol version
This commit is contained in:
parent
cf83c608d3
commit
8b61c95685
@ -170,7 +170,7 @@ final class NativeHttpClient implements HttpClientInterface, LoggerAwareInterfac
|
|||||||
|
|
||||||
$context = [
|
$context = [
|
||||||
'http' => [
|
'http' => [
|
||||||
'protocol_version' => $options['http_version'] ?: '1.1',
|
'protocol_version' => min($options['http_version'] ?: '1.1', '1.1'),
|
||||||
'method' => $method,
|
'method' => $method,
|
||||||
'content' => $options['body'],
|
'content' => $options['body'],
|
||||||
'ignore_errors' => true,
|
'ignore_errors' => true,
|
||||||
|
Reference in New Issue
Block a user