diff --git a/src/File/Loader.php b/src/File/Loader.php index 3bab0c3b7..9294194b8 100644 --- a/src/File/Loader.php +++ b/src/File/Loader.php @@ -264,17 +264,6 @@ protected function setCurlOptions($curl) if (!@curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true)) { throw new RuntimeException('curl_setopt(CURLOPT_FOLLOWLOCATION) failed.'); } - if (defined('CURL_SSLVERSION_TLSv1_1')) { - if (!@curl_setopt($curl, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_1)) { - throw new RuntimeException('curl_setopt(CURLOPT_SSLVERSION) failed.'); - } - } else { - // Manually checked that CURL_SSLVERSION_TLSv1_1 is 5 for any version of curl from 7.34.0 to 7.61.0 - // See for example https://github.com/curl/curl/blob/curl-7_34_0/include/curl/curl.h#L1668 - if (!@curl_setopt($curl, CURLOPT_SSLVERSION, 5)) { - throw new RuntimeException('curl_setopt(CURLOPT_SSLVERSION) failed.'); - } - } } /**