X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FWorker%2FUpdateServerPeers.php;h=98ae88a97b5be8acded06a0dc1a0f040ecfc4a10;hb=34030a736d5e0aa2195c0f472cf69f863c161d83;hp=c14dccc3aaef90f88b880ed220d0e35fb1bab75c;hpb=322b7c856ca9ba53bd9c7da50dd5c1e3c9197d56;p=friendica.git diff --git a/src/Worker/UpdateServerPeers.php b/src/Worker/UpdateServerPeers.php index c14dccc3aa..98ae88a97b 100644 --- a/src/Worker/UpdateServerPeers.php +++ b/src/Worker/UpdateServerPeers.php @@ -25,6 +25,7 @@ use Friendica\Core\Logger; use Friendica\Database\DBA; use Friendica\DI; use Friendica\Model\GServer; +use Friendica\Network\HTTPClient\Client\HttpClientAccept; use Friendica\Util\Strings; class UpdateServerPeers @@ -35,7 +36,7 @@ class UpdateServerPeers */ public static function execute(string $url) { - $ret = DI::httpClient()->get($url . '/api/v1/instance/peers'); + $ret = DI::httpClient()->get($url . '/api/v1/instance/peers', HttpClientAccept::JSON); if (!$ret->isSuccess() || empty($ret->getBody())) { Logger::info('Server is not reachable or does not offer the "peers" endpoint', ['url' => $url]); return;