mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: api session revoke test
This commit is contained in:
@@ -49,6 +49,9 @@ exports.handleErrors = async function handleErrors(err, req, res, next) { // esl
|
||||
},
|
||||
};
|
||||
const defaultHandler = async function () {
|
||||
if (res.headersSent) {
|
||||
return;
|
||||
}
|
||||
// Display NodeBB error page
|
||||
const status = parseInt(err.status, 10);
|
||||
if ((status === 302 || status === 308) && err.path) {
|
||||
|
||||
Reference in New Issue
Block a user