-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 do_not_route_options!
handling: do not respond to OPTIONS if disabled!
#1119
Conversation
First, there should be a test for the fixed behavior, please. |
If this is caused by #1120 then the CHANGELOG should be a bit clearer. |
Can I get some clarification on that? "Test for #1119 being fixed":
|
The order of headers isn't the problem in the bug. There should be a test (in any spec appropriate) that reproduces the actual problem, aka that the API responds to OPTIONS when it shouldn't. That test should fail without the fix. Does this help? |
@jf Is the objective of this PR to remove |
Yup. That was the spirit of jf@3f3c0ba. OPTIONS should not be be advertised as an allowed method when |
FYI: so apparently this wasn't caught by
spec/grape/dsl/routing_spec.rb
. Not too sure how to fix that.