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 911177e commit 2640207Copy full SHA for 2640207
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