Skip to content

Commit

Permalink
bug #35210 [HttpClient] NativeHttpClient should not send >1.1 protoco…
Browse files Browse the repository at this point in the history
…l 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
  • Loading branch information
nicolas-grekas committed Jan 4, 2020
2 parents eb5171f + 8b61c95 commit ccfc4b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/HttpClient/NativeHttpClient.php
Expand Up @@ -170,7 +170,7 @@ public function request(string $method, string $url, array $options = []): Respo

$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,
Expand Down

0 comments on commit ccfc4b6

Please sign in to comment.