Modified a commented directive

This commit is contained in:
pezcurrel 2024-11-07 20:31:06 +01:00
parent 982569acd6
commit 2a511daa27

View file

@ -94,7 +94,7 @@ function curl($url,$napid=null,$headers=null,$postdata=null,$conntimeout=null,$f
if ($sdate===false) break;
} elseif (preg_match('#^x-ratelimit-remaining: (\d+)$#i',$header,$matches)===1) {
$rlrem=$matches[1]+0;
// echo "Ratelimit-remaining: {$rlrem}\n";
// echo "«{$url}»: Ratelimit-remaining: {$rlrem}\n";
} elseif (preg_match('#^x-ratelimit-reset: (.*)$#i',$header,$matches)===1) {
$rlres=@strtotime($matches[1]);
if ($rlres===false) break;