Skip to content

Commit df383d2

Browse files
Merge branch '4.3' into 4.4
* 4.3: [HttpClient] NativeHttpClient should not send >1.1 protocol version
2 parents ddd9e6d + f53699e commit df383d2

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
@@ -187,7 +187,7 @@ public function request(string $method, string $url, array $options = []): Respo
187187

188188
$context = [
189189
'http' => [
190-
'protocol_version' => $options['http_version'] ?: '1.1',
190+
'protocol_version' => min($options['http_version'] ?: '1.1', '1.1'),
191191
'method' => $method,
192192
'content' => $options['body'],
193193
'ignore_errors' => true,

0 commit comments

Comments
 (0)