Skip to content

Commit cea0531

Browse files
[HttpClient] with "bindto" with NativeHttpClient
1 parent d441d86 commit cea0531

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)