The redundant function "fetchfull" is removed

This commit is contained in:
Michael 2024-09-04 17:04:45 +00:00
parent 9bf5b27362
commit 22828388c0
6 changed files with 25 additions and 43 deletions

View file

@ -557,11 +557,11 @@ class Installer
$help = "";
$error_msg = "";
if (function_exists('curl_init')) {
$fetchResult = DI::httpClient()->fetchFull($baseurl . "/install/testrewrite");
$fetchResult = DI::httpClient()->get($baseurl . "/install/testrewrite");
$url = Strings::normaliseLink($baseurl . "/install/testrewrite");
if ($fetchResult->getReturnCode() != 204) {
$fetchResult = DI::httpClient()->fetchFull($url);
$fetchResult = DI::httpClient()->get($url);
}
if ($fetchResult->getReturnCode() != 204) {