-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
405 -> 404 #13
Comments
hmmm i think this might be routington trailing slash business |
i'm probably not going to work on this anytime soon since i don't particularly care for this. did you want me to add you as a maintainer for this and |
sure thing — On Tue, Aug 5, 2014 at 12:01 AM, Jonathan Ong notifications@github.com
|
It looks like the issue still exists. I'm not sure where we need fix that error (trie-router or routington) but url = url.replace(/\/$/, '') |
@jonathanong what do you think about it? ⬆️ |
i think it needs to be an option. some people treat trailing slashes differently. |
yes, i think it's a routington thing |
I'm closing this issue because I've added the note about this behavior into docs. I think one of the possible solutions is to add koa-no-trailing-slash middleware to the top of the middleware queue. |
A request made to a route that has not been defined is returning a 405 instead of 404.
If the case was that
/trailing-slash
was defined but not for aGET
then a 405 would make sense.The text was updated successfully, but these errors were encountered: