Remove check for curl init working

This commit is contained in:
Joshua Ramon Enslin 2020-12-08 20:42:54 +01:00
parent ddab52b1a5
commit d028ac0176
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

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