X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FMagic.php;h=e4ed1e93bf08138a4346d6262eccbe6d08f2e05f;hb=e4682a522e34c8484889c66aa018ba83d20c7aab;hp=c47a7a4d504dffce50bf9e1acd7647692c8accf3;hpb=fd7c1d766c2c922909b858f7af6aa440fbc697aa;p=friendica.git diff --git a/src/Module/Magic.php b/src/Module/Magic.php index c47a7a4d50..e4ed1e93bf 100644 --- a/src/Module/Magic.php +++ b/src/Module/Magic.php @@ -1,6 +1,6 @@ app = $app; - $this->logger = $logger; $this->dba = $dba; $this->httpClient = $httpClient; - $this->baseUrl = $baseUrl; } - public function rawContent() + protected function rawContent(array $request = []) { $this->logger->info('magic module: invoked'); @@ -116,7 +113,7 @@ class Magic extends BaseModule ); // Try to get an authentication token from the other instance. - $curlResult = $this->httpClient->get($basepath . '/owa', [HttpClientOptions::HEADERS => $header]); + $curlResult = $this->httpClient->get($basepath . '/owa', HttpClientAccept::DEFAULT, [HttpClientOptions::HEADERS => $header]); if ($curlResult->isSuccess()) { $j = json_decode($curlResult->getBody(), true);