diff --git a/HttpClient.php b/HttpClient.php index 606d043..79cee02 100644 --- a/HttpClient.php +++ b/HttpClient.php @@ -50,7 +50,7 @@ public static function create(array $defaultOptions = [], int $maxHostConnection } if (\extension_loaded('curl')) { - 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')) { return new CurlHttpClient($defaultOptions, $maxHostConnections, $maxPendingPushes); }