mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46: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 response;
|
||||||
let body;
|
let body;
|
||||||
try {
|
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) {
|
} catch (e) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user