]> git.mxchange.org Git - friendica.git/blobdiff - mod/redir.php
Unified JSON exit
[friendica.git] / mod / redir.php
index 5a707d229cd3524b5ff36c47a5fc1246c5d6f054..dc086ae19a2347387c3541df6db5bff6e65f9cdb 100644 (file)
@@ -144,7 +144,7 @@ function redir_magic($a, $cid, $url)
        }
 
        // Test for magic auth on the target system
-       $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()) {
                $separator = strpos($target_url, '?') ? '&' : '?';
                $target_url .= $separator . 'zrl=' . urlencode($visitor) . '&addr=' . urlencode($contact_url);