Fix #660: don't send headers twice on emoji router errors.
This commit is contained in:
@ -78,7 +78,9 @@ export async function initEmojisRouter (
|
||||
},
|
||||
(err) => {
|
||||
if (err) {
|
||||
res.sendStatus(404)
|
||||
if (!res.headersSent) {
|
||||
res.sendStatus(404)
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
|
Reference in New Issue
Block a user