fix: api session revoke test

This commit is contained in:
Barış Soner Uşaklı
2021-10-25 20:47:10 -04:00
parent 62e44dc5be
commit 0926ae6ecf

View File

@@ -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) {