8000 Fix 404 not being properly thrown by REST provider by loris · Pull Request #146 · feathersjs/feathers · GitHub
[go: up one dir, main page]

Skip to content

Fix 404 not being properly thrown by REST provider#146

Merged
daffl merged 2 commits intofeathersjs:masterfeathersjs/feathers:masterfrom
loris:patch-1
Sep 22, 2015
Merged

Fix 404 not being properly thrown by REST provider#146
daffl merged 2 commits intofeathersjs:masterfrom
loris:patch-1

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

0