Skip to content
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

Fix 404 not being properly thrown by REST provider #146

Merged
merged 2 commits into from
Sep 22, 2015

Conversation

loris
Copy link
Contributor

@loris loris commented Sep 21, 2015

The way the routes are created by the REST provider prevent 404 errors being properly thrown.
To reproduce, just run the feathers todo-list demo and browse to an URL like /todos/foo/bar, it won’t return a 404 as it should but a 200 without any content (because of the app.use(uri, handler); statement catching any URLs starting with /todos)

The way the routes are created by the REST provider prevent 404 error being properly thrown.
To reproduce, just run the feathers todo-list demo and browse to an URL like `/todos/foo/bar`, it won’t return a 404 as it should but a 200 without any content (because of the `app.use(uri, handler);` statement catching any URLs starting with `/todos`)
@daffl
Copy link
Member

daffl commented Sep 21, 2015

That makes sense, thank you! I will release a 1.1.1 with this fix later today.

daffl added a commit that referenced this pull request Sep 22, 2015
Fix 404 not being properly thrown by REST provider
@daffl daffl merged commit 85334f0 into feathersjs:master Sep 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants