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

Fix for #464: gracefully handle invalid version headers #549

Merged
merged 1 commit into from
Jan 3, 2014

Conversation

bwalex
Copy link
Contributor

@bwalex bwalex commented Jan 3, 2014

  • Catch the exception(s) thrown by rack-accept and return a 406 if one
    is caught.
  • Add a spec to cover this case.

end
end

it 'should result in a 406 response if they are invalid' do
Copy link
Member

Choose a reason for hiding this comment

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

Split these in two separate examples and change the language from "should result in" to "results in ...", thx.

 * Catch the exception(s) thrown by rack-accept and return a 406 if one
   is caught.

 * Add a spec to cover this case.
@bwalex
Copy link
Contributor Author

bwalex commented Jan 3, 2014

Addressed feedback.

@dblock
Copy link
Member

dblock commented Jan 3, 2014

Excellent, merging. Thx.

dblock added a commit that referenced this pull request Jan 3, 2014
Fix for #464: gracefully handle invalid version headers
@dblock dblock merged commit 19dbe48 into ruby-grape:master Jan 3, 2014
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