Rename DI::httpRequest() into DI::httpClient()

This commit is contained in:
Philipp
2021-08-25 21:54:54 +02:00
parent 505100bdd7
commit 13a91e63aa
38 changed files with 94 additions and 94 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ class UpdateServerPeers
*/
public static function execute(string $url)
{
$ret = DI::httpRequest()->get($url . '/api/v1/instance/peers');
$ret = DI::httpClient()->get($url . '/api/v1/instance/peers');
if (!$ret->isSuccess() || empty($ret->getBody())) {
Logger::info('Server is not reachable or does not offer the "peers" endpoint', ['url' => $url]);
return;