8000 [HttpClient] NativeHttpClient should not send >1.1 protocol version by nicolas-grekas · Pull Request #35210 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[HttpClient] NativeHttpClient should not send >1.1 protocol version #35210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 4, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[HttpClient] NativeHttpClient should not send >1.1 protocol version
  • Loading branch information
nicolas-grekas committed Jan 4, 2020
commit 8b61c956858fb880365365ebe9397b729df58b81
2 changes: 1 addition & 1 deletion src/Symfony/Component/HttpClient/NativeHttpClient.php
Original file line number Diff line number Diff line change
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