mirror of
https://github.com/friendica/friendica
synced 2024-11-17 23:43:40 +00:00
Merge pull request #14473 from annando/issue-14471
Issue 14471: Fix webfinger request
This commit is contained in:
commit
159e6e79dc
1 changed files with 2 additions and 2 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue