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

allow grape to return 405 when route method for route is not defined #20

Merged
merged 1 commit into from
Jul 29, 2019

Conversation

zwalker
Copy link
Contributor

@zwalker zwalker commented Jul 29, 2019

allow grape to return 405 when route method for route is not defined

Similar to https://gitlab.com/gitlab-org/gitlab-ce/commit/892ff3a3ae640272f8712fb190242f2b1fe010a0, the value of
env[Grape::Env::GRAPE_ROUTING_ARGS] is nil when the http method requested is not allowed resulting
in an execption that masks the 405

…ined

Similar to https://gitlab.com/gitlab-org/gitlab-ce/commit/892ff3a3ae640272f8712fb190242f2b1fe010a0, the value of
env[Grape::Env::GRAPE_ROUTING_ARGS] is nil when the http method requested is not allowed resulting
in an execption that masks the 405
@zwalker zwalker requested a review from tlconnor July 29, 2019 17:42
Copy link
Contributor

@tlconnor tlconnor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks for fixing.

@zwalker zwalker merged commit 79c6605 into master Jul 29, 2019
@zwalker zwalker deleted the fixMethodNotAllowedException branch July 29, 2019 21:48
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