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 42a0999 commit 157a9afCopy full SHA for 157a9af
src/Http/CurlDispatcher.php
@@ -91,7 +91,11 @@ public function dispatch(Url $url)
91
}
92
93
//Other sites needs a certificate
94
- if ($response->getStatusCode() === 0 && strpos($response->getError(), 'SSL') !== false) {
+ if (
95
+ class_exists('Composer\\CaBundle\\CaBundle')
96
+ && $response->getStatusCode() === 0
97
+ && strpos($response->getError(), 'SSL') !== false
98
+ ) {
99
$options[CURLOPT_SSL_VERIFYHOST] = 2;
100
$options[CURLOPT_SSL_VERIFYPEER] = true;
101
$options[CURLOPT_CAINFO] = CaBundle::getSystemCaRootBundlePath();
0 commit comments