Skip to content

Commit c6bd591

Browse files
committed
Merge branch '4.4' into 5.2
* 4.4: allow CurlHttpClient on Windows remove references to "Silex"
2 parents 3c30754 + 2640207 commit c6bd591

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

HttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static function create(array $defaultOptions = [], int $maxHostConnection
5050
}
5151

5252
if (\extension_loaded('curl')) {
53-
if ('\\' !== \DIRECTORY_SEPARATOR || ini_get('curl.cainfo') || ini_get('openssl.cafile') || ini_get('openssl.capath')) {
53+
if ('\\' !== \DIRECTORY_SEPARATOR || isset($defaultOptions['cafile']) || isset($defaultOptions['capath']) || ini_get('curl.cainfo') || ini_get('openssl.cafile') || ini_get('openssl.capath')) {
5454
return new CurlHttpClient($defaultOptions, $maxHostConnections, $maxPendingPushes);
5555
}
5656

0 commit comments

Comments
 (0)