From b10255ca442ee7c20c045b980fdf645189bd1830 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 17 Oct 2024 22:04:31 +0000 Subject: [PATCH] Issue 14471: Fix wegfinger request --- src/Module/Xrd.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Module/Xrd.php b/src/Module/Xrd.php index 7c156f5174..3e55f0571b 100644 --- a/src/Module/Xrd.php +++ b/src/Module/Xrd.php @@ -33,14 +33,14 @@ class Xrd extends BaseModule } $uri = urldecode(trim($_GET['uri'])); - $mode = self::getAcceptedContentType($_SERVER['HTTP_ACCEPT'] ?? '', Response::TYPE_JSON); + $mode = self::getAcceptedContentType($_SERVER['HTTP_ACCEPT'] ?? '', Response::TYPE_XML); } else { if (empty($_GET['resource'])) { throw new BadRequestException(); } $uri = urldecode(trim($_GET['resource'])); - $mode = self::getAcceptedContentType($_SERVER['HTTP_ACCEPT'] ?? '', Response::TYPE_XML); + $mode = self::getAcceptedContentType($_SERVER['HTTP_ACCEPT'] ?? '', Response::TYPE_JSON); } if (Network::isValidHttpUrl($uri)) {