Introduce "accept_header" as specific argument to the http client

This commit is contained in:
Philipp
2022-04-02 21:16:22 +02:00
parent 73c3b21665
commit e299fc67c8
35 changed files with 150 additions and 150 deletions

View File

@@ -35,7 +35,7 @@ class NodeInfo
// Now trying to register
$url = 'http://the-federation.info/register/' . DI::baseUrl()->getHostname();
Logger::debug('Check registering url', ['url' => $url]);
$ret = DI::httpClient()->fetch($url, 0, HttpClientAccept::HTML);
$ret = DI::httpClient()->fetch($url, HttpClientAccept::HTML);
Logger::debug('Check registering answer', ['answer' => $ret]);
Logger::info('end');
}