API: The legacy API finally moved

This commit is contained in:
Michael 2022-01-15 21:38:19 +00:00
parent 8abf1dccf0
commit 95f085b7ac
22 changed files with 1161 additions and 1391 deletions

View file

@ -216,6 +216,7 @@ class ParseUrl
$curlResult = DI::httpClient()->get($url, [HttpClientOptions::CONTENT_LENGTH => 1000000]);
if (!$curlResult->isSuccess() || empty($curlResult->getBody())) {
Logger::info('Empty body or error when fetching', ['url' => $url, 'success' => $curlResult->isSuccess(), 'code' => $curlResult->getReturnCode()]);
return $siteinfo;
}