mirror of
https://github.com/friendica/friendica
synced 2025-04-28 11:04:22 +02:00
Centralized logging for a wrong JSON content-type
This commit is contained in:
parent
013bba50bc
commit
d9bedbb473
4 changed files with 13 additions and 9 deletions
|
@ -4097,7 +4097,7 @@ class Item
|
|||
}
|
||||
|
||||
$curlResult = DI::httpClient()->head($uri, [HttpClientOptions::ACCEPT_CONTENT => HttpClientAccept::JSON_AS]);
|
||||
if (HTTPSignature::isValidContentType($curlResult->getContentType())) {
|
||||
if (HTTPSignature::isValidContentType($curlResult->getContentType(), $uri)) {
|
||||
$fetched_uri = ActivityPub\Processor::fetchMissingActivity($uri, [], '', $completion, $uid);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue