When curl error is unknown, the message is now “reason unknown” instead of “unknown”
This commit is contained in:
parent
2c86580bfb
commit
d803d6f667
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue