server: return http 404 error when a user-requested resource is not found instead of keeping a pending request

This commit is contained in:
bordun 2021-01-11 10:59:27 +01:00
parent 420bd55e7a
commit 2d859d719c
2 changed files with 5 additions and 0 deletions

View file

@ -2,6 +2,9 @@
## next
- bug fixes
- server: return http 404 error when a user-requested resource is not found instead of keeping a pending request
- project tree
- add an input for filtering displayed widget by id

View file

@ -110,6 +110,8 @@ function httpRoute(req, res) {
}
console.error(`(ERROR, HTTP) File not found: ${url}`)
res.writeHead(404)
res.end()
} else if (url.includes('/osc-ping')) {
httpCheck(true)