When curl error is unknown, the message is now “reason unknown” instead of “unknown”

This commit is contained in:
pezcurrel 2022-12-21 06:54:58 +01:00
parent 2c86580bfb
commit d803d6f667

View file

@ -26,7 +26,7 @@ function gurl($url,$conntimeout,$timeout=45,$headers=[]) {
$cont=false;
} elseif (!$cont) {
$cont=false;
$emsg='unknown';
$emsg='reason unknown';
}
curl_close($curli);
return(['cont'=>$cont,'headers'=>$headers,'emsg'=>$emsg]);