Fix #660: don't send headers twice on emoji router errors.
This commit is contained in:
parent
7fd895c82e
commit
35236328b2
@ -1,5 +1,11 @@
|
||||
# Changelog
|
||||
|
||||
## (???) Not Released Yet
|
||||
|
||||
### Minor changes and fixes
|
||||
|
||||
* Fix #660: don't send headers twice on emoji router errors.
|
||||
|
||||
## 12.0.3
|
||||
|
||||
### Minor changes and fixes
|
||||
|
@ -78,7 +78,9 @@ export async function initEmojisRouter (
|
||||
},
|
||||
(err) => {
|
||||
if (err) {
|
||||
res.sendStatus(404)
|
||||
if (!res.headersSent) {
|
||||
res.sendStatus(404)
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user