Skip to content

Commit 7c00aab

Browse files
committed
bug symfony#38086 [HttpClient] with "bindto" with NativeHttpClient (nicolas-grekas)
This PR was merged into the 4.4 branch. Discussion ---------- [HttpClient] with "bindto" with NativeHttpClient | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix symfony#38081 | License | MIT | Doc PR | - /cc @derrabus Commits ------- cea0531 [HttpClient] with "bindto" with NativeHttpClient
2 parents d441d86 + cea0531 commit 7c00aab

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
@@ -214,7 +214,7 @@ public function request(string $method, string $url, array $options = []): Respo
214214
'disable_compression' => true,
215215
], static function ($v) { return null !== $v; }),
216216
'socket' => [
217-
'bindto' => $options['bindto'],
217+
'bindto' => $options['bindto'] ?: '0:0',
218218
'tcp_nodelay' => true,
219219
],
220220
];

0 commit comments

Comments
 (0)