Closed Darkle closed 3 years ago
Thank you for the bug report! This is indeed a code bug, not a documentation bug. When doing get(() => status(404))
the internal variable ctx.req.solved
is set to true
even if it hasn't been truly resolved. This is done on purpose to avoid unintended cascading effects (e.g. get('/about')
and then get('/:userId')
both being called on /about
).
The fix is here, would love a PR review if you have 5 mins:
Fixed on v1.0.33 🎉
Describe the bug The example shown in https://serverjs.io/documentation/#basic-usage is incorrect. The status() call needs a .end() on it, otherwise it times out.
To Reproduce Running the following code:
And then going to http://localhost:3000 the web page times out.
Expected behavior The web page should not time out.
I believe the status() call needs a .end on it: