mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: send proper accept header for outgoing webfinger requests
This commit is contained in:
@@ -108,7 +108,11 @@ Helpers.query = async (id) => {
|
||||
let response;
|
||||
let body;
|
||||
try {
|
||||
({ response, body } = await request.get(`https://${hostname}/.well-known/webfinger?${query}`));
|
||||
({ response, body } = await request.get(`https://${hostname}/.well-known/webfinger?${query}`, {
|
||||
headers: {
|
||||
accept: 'application/jrd+json',
|
||||
},
|
||||
}));
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user