Use appropriate "accept" values

This commit is contained in:
Michael 2022-03-30 14:39:53 +00:00
parent 3e21b035b7
commit 2ca51f752d
5 changed files with 18 additions and 17 deletions

View file

@ -73,7 +73,7 @@ class Salmon
$ret[$x] = substr($ret[$x], 5);
}
} elseif (Strings::normaliseLink($ret[$x]) == 'http://') {
$ret[$x] = DI::httpClient()->fetch($ret[$x], 0, HttpClient::ACCEPT_DEFAULT);
$ret[$x] = DI::httpClient()->fetch($ret[$x], 0, HttpClient::ACCEPT_MAGIC_KEY);
Logger::debug('Fetched public key', ['url' => $ret[$x]]);
}
}