mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 18:46:01 +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();
|
||||
};
|
||||
|
||||
middleware.configureResponse = async function (req, res, next) {
|
||||
res.header('Content-Type', 'application/activity+json');
|
||||
next();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user