Replace remaining occurrences of Network::curl

pull/8911/head
Hypolite Petovan 2020-07-21 21:39:59 -04:00
rodzic 1998b7811b
commit ec3ec3b78a
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -35,6 +35,7 @@ use Friendica\Network\Probe;
use Friendica\Protocol\ActivityPub;
use Friendica\Protocol\PortableContact;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Network;
use Friendica\Util\Strings;
/**
@ -1377,7 +1378,7 @@ class GContact
return;
}
$curlResult = Network::curl($data['poco']);
$curlResult = DI::httpRequest()->get($data['poco']);
if (!$curlResult->isSuccess()) {
return;
}

Wyświetl plik

@ -359,7 +359,7 @@ class GServer
// When the base path doesn't seem to contain a social network we try the complete path.
// Most detectable system have to be installed in the root directory.
// We checked the base to avoid false positives.
$curlResult = Network::curl($url, false, ['timeout' => $xrd_timeout]);
$curlResult = DI::httpRequest()->get($url, false, ['timeout' => $xrd_timeout]);
if ($curlResult->isSuccess()) {
$urldata = self::analyseRootHeader($curlResult, $serverdata);
$urldata = self::analyseRootBody($curlResult, $urldata, $url);