Remove accept parameter for head/post again

This commit is contained in:
Philipp Holzer 2022-04-03 19:33:09 +02:00
commit 04866195b4
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
12 changed files with 54 additions and 57 deletions

View file

@ -27,7 +27,6 @@ use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Model\Contact;
use Friendica\Model\Profile;
use Friendica\Network\HTTPClient\Client\HttpClientAccept;
use Friendica\Util\Strings;
function redir_init(App $a) {
@ -143,7 +142,7 @@ function redir_magic($a, $cid, $url)
}
// Test for magic auth on the target system
$serverret = DI::httpClient()->head($basepath . '/magic', HttpClientAccept::HTML);
$serverret = DI::httpClient()->head($basepath . '/magic');
if ($serverret->isSuccess()) {
$separator = strpos($target_url, '?') ? '&' : '?';
$target_url .= $separator . 'zrl=' . urlencode($visitor) . '&addr=' . urlencode($contact_url);