Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7c00aab

Browse filesBrowse files
committed
bug #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 #38081 | License | MIT | Doc PR | - /cc @derrabus Commits ------- cea0531 [HttpClient] with "bindto" with NativeHttpClient
2 parents d441d86 + cea0531 commit 7c00aab
Copy full SHA for 7c00aab

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/HttpClient/NativeHttpClient.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpClient/NativeHttpClient.php
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.