Skip to content

Fix 404 not being properly thrown by REST provider - #146

Merged
daffl merged 2 commits into
feathersjs:masterfrom
loris:patch-1
Sep 22, 2015
Merged

daffl merged 2 commits into
feathersjs:masterfrom
loris:patch-1

Conversation

@loris

@loris loris commented Sep 21, 2015

Copy link
Copy Markdown
Contributor

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

daffl commented Sep 21, 2015

Copy link
Copy Markdown
Member

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