mirror of
https://github.com/friendica/friendica
synced 2025-04-26 21:10:16 +00:00
Rename DI::httpRequest() into DI::httpClient()
This commit is contained in:
parent
505100bdd7
commit
13a91e63aa
38 changed files with 94 additions and 94 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue