mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-05 05:25:49 +01:00
feat: send proper content-type on AP S2S responses
This commit is contained in:
@@ -46,3 +46,8 @@ middleware.validate = async function (req, res, next) {
|
|||||||
|
|
||||||
next();
|
next();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
middleware.configureResponse = async function (req, res, next) {
|
||||||
|
res.header('Content-Type', 'application/activity+json');
|
||||||
|
next();
|
||||||
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user