8000 bug #35210 [HttpClient] NativeHttpClient should not send >1.1 protoco… · symfony/symfony@ccfc4b6 · GitHub
[go: up one dir, main page]

Skip to content

Commit ccfc4b6

Browse files
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 ------- 8b61c95 [HttpClient] NativeHttpClient should not send >1.1 protocol version
2 parents eb5171f + 8b61c95 commit ccfc4b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpClient/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)
0