8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a3f912 commit 6609a17Copy full SHA for 6609a17
src/Symfony/Component/HttpClient/HttpClient.php
@@ -30,7 +30,7 @@ final class HttpClient
30
public static function create(array $defaultOptions = [], int $maxHostConnections = 6, int $maxPendingPushes = 50): HttpClientInterface
31
{
32
if (\extension_loaded('curl')) {
33
- if ('\\' !== \DIRECTORY_SEPARATOR || ini_get('curl.cainfo') || ini_get('openssl.cafile') || ini_get('openssl.capath')) {
+ if ('\\' !== \DIRECTORY_SEPARATOR || isset($defaultOptions['cafile']) || isset($defaultOptions['capath']) || ini_get('curl.cainfo') || ini_get('openssl.cafile') || ini_get('openssl.capath')) {
34
return new CurlHttpClient($defaultOptions, $maxHostConnections, $maxPendingPushes);
35
}
36
0 commit comments