Skip to content

Commit f53699e

Browse files
[HttpClient] NativeHttpClient should not send >1.1 protocol version
1 parent a99d2fb commit f53699e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NativeHttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public function request(string $method, string $url, array $options = []): Respo
170170

171171
$context = [
172172
'http' => [
173-
'protocol_version' => $options['http_version'] ?: '1.1',
173+
'protocol_version' => min($options['http_version'] ?: '1.1', '1.1'),
174174
'method' => $method,
175175
'content' => $options['body'],
176176
'ignore_errors' => true,

0 commit comments

Comments
 (0)