Remove check for curl init working
This commit is contained in:
parent
ddab52b1a5
commit
d028ac0176
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user