Try to prevent late/duplicate response errors (#20077)
* Ensure all Express 'next' calls include 'return's * Add headersSent checks during archived versions flow * Return a 404 earlier if archived resource fetch fails * Short-circuit responses for archived stuff * Be more careful about responding to and short-circuiting after search requests * Fix tests
This commit is contained in:
@@ -15,5 +15,5 @@ module.exports = async function handleNextDataPath (req, res, next) {
|
||||
req.pagePath = req.path
|
||||
}
|
||||
|
||||
next()
|
||||
return next()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user