8000 allow CurlHttpClient on Windows · symfony/symfony@6609a17 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6609a17

Browse files
authored
allow CurlHttpClient on Windows
1 parent 2a3f912 commit 6609a17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpClient/HttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class HttpClient
3030
public static function create(array $defaultOptions = [], int $maxHostConnections = 6, int $maxPendingPushes = 50): HttpClientInterface
3131
{
3232
if (\extension_loaded('curl')) {
33-
if ('\\' !== \DIRECTORY_SEPARATOR || ini_get('curl.cainfo') || ini_get('openssl.cafile') || ini_get('openssl.capath')) {
33+
if ('\\' !== \DIRECTORY_SEPARATOR || isset($defaultOptions['cafile']) || isset($defaultOptions['capath']) || ini_get('curl.cainfo') || ini_get('openssl.cafile') || ini_get('openssl.capath')) {
3434
return new CurlHttpClient($defaultOptions, $maxHostConnections, $maxPendingPushes);
3535
}
3636

0 commit comments

Comments
 (0)
0