From d028ac017625fae9587965eea2995e0707dab1c4 Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Tue, 8 Dec 2020 20:42:54 +0100 Subject: [PATCH] Remove check for curl init working --- MD_STD.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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);