]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Profile.php
Use centralized function to fetch query results
[friendica.git] / src / Model / Profile.php
index 3a453cc87522c08f245207aab790c393bdeb4396..85af2030013b7ba6d85b0b99f2c6c19e471bbcdd 100644 (file)
@@ -751,7 +751,7 @@ class Profile
                        $magic_path = $basepath . '/magic' . '?owa=1&dest=' . $dest . '&' . $addr_request;
 
                        // We have to check if the remote server does understand /magic without invoking something
-                       $serverret = DI::httpClient()->get($basepath . '/magic', [HttpClientOptions::ACCEPT_CONTENT => HttpClient::ACCEPT_DEFAULT]);
+                       $serverret = DI::httpClient()->head($basepath . '/magic', [HttpClientOptions::ACCEPT_CONTENT => HttpClient::ACCEPT_HTML]);
                        if ($serverret->isSuccess()) {
                                Logger::info('Doing magic auth for visitor ' . $my_url . ' to ' . $magic_path);
                                System::externalRedirect($magic_path);