Merge pull request #13977 from annando/dont-retry
Don't retry when fetching invalid content
This commit is contained in:
commit
2077e00eae
|
@ -1611,15 +1611,15 @@ class Processor
|
|||
|
||||
if (empty($object) || !is_array($object)) {
|
||||
Logger::notice('Invalid JSON data', ['url' => $url, 'content-type' => $curlResult->getContentType()]);
|
||||
return '';
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!self::isValidObject($object, $url)) {
|
||||
return '';
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!HTTPSignature::isValidContentType($curlResult->getContentType(), $url)) {
|
||||
return '';
|
||||
return null;
|
||||
}
|
||||
|
||||
$ldobject = JsonLD::compact($object);
|
||||
|
|
Loading…
Reference in New Issue
Block a user