mirror of
https://github.com/friendica/friendica
synced 2025-04-27 10:30:10 +00:00
Use appropriate "accept" values
This commit is contained in:
parent
3e21b035b7
commit
2ca51f752d
5 changed files with 18 additions and 17 deletions
|
@ -1527,7 +1527,7 @@ class Probe
|
|||
$pubkey = substr($pubkey, 5);
|
||||
}
|
||||
} elseif (Strings::normaliseLink($pubkey) == 'http://') {
|
||||
$curlResult = DI::httpClient()->get($pubkey, [HttpClientOptions::ACCEPT_CONTENT => HttpClient::ACCEPT_DEFAULT]);
|
||||
$curlResult = DI::httpClient()->get($pubkey, [HttpClientOptions::ACCEPT_CONTENT => HttpClient::ACCEPT_MAGIC_KEY]);
|
||||
if ($curlResult->isTimeout()) {
|
||||
self::$istimeout = true;
|
||||
return $short ? false : [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue