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

OPTIONS method for namespaced GET does not call inner before filter #1428

Closed
jlfaber opened this issue Jun 15, 2016 · 2 comments
Closed

OPTIONS method for namespaced GET does not call inner before filter #1428

jlfaber opened this issue Jun 15, 2016 · 2 comments
Assignees

Comments

@jlfaber
Copy link
Contributor

jlfaber commented Jun 15, 2016

When I use a namespace to define a GET method, and I add a before filter within the namespace block, that filter is called when GET executes, but is not called when OPTIONS executes. This differs from the behavior when the GET and before filter are not within a namespace. In that case, the before filter is called both for GET and OPTIONS.

I'll add a PR with a failing test spec to demonstrate the issue.

jlfaber pushed a commit to jlfaber/grape that referenced this issue Jun 15, 2016
@dblock
Copy link
Member

dblock commented Jun 15, 2016

Yep, looks like a bug.

jlfaber pushed a commit to jlfaber/grape that referenced this issue Jul 20, 2016
@namusyaka namusyaka self-assigned this Sep 7, 2016
@namusyaka
Copy link
Contributor

I'm going to fix it in a few days. Thanks for the report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants