]> git.mxchange.org Git - friendica.git/commitdiff
Replace remaining occurrences of Network::curl
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 22 Jul 2020 01:39:59 +0000 (21:39 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Wed, 22 Jul 2020 01:39:59 +0000 (21:39 -0400)
src/Model/GContact.php
src/Model/GServer.php

index ab0a4fdd84438c692d15c90e01174d352d16156c..41ca763fc6cf4a41d794afa93744f9c8952cde0c 100644 (file)
@@ -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;
                }
index 7643c9590e43fbb9210a823f9c31886e43e55b74..0f47146eb73705b67613bfa793f594d9ec3696a4 100644 (file)
@@ -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);