diff --git a/MD_STD.php b/MD_STD.php index 9ac9b01..b9e1578 100644 --- a/MD_STD.php +++ b/MD_STD.php @@ -184,9 +184,7 @@ final class MD_STD { */ public static function runCurl(string $url, int $timeout = 1200):string { - if (($curl = \curl_init()) === false) { - throw new MDExpectedException("Curl initialization failed."); - } + $curl = \curl_init(); \curl_setopt($curl, CURLOPT_URL, $url); \curl_setopt($curl, CURLOPT_HEADER, false);