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 router bugs #1359

Merged
merged 2 commits into from
Apr 11, 2016
Merged

Fix router bugs #1359

merged 2 commits into from
Apr 11, 2016

Conversation

namusyaka
Copy link
Contributor

ref #1355 #1356
The PATCH bug is caused by calling Grape::Middleware::Versioner::Header.
Now, grape router calls it because you can not eject route except first route of all routes having same paths.
But maybe it has no problem essentially.
So I think this problem can be solved by not call the middleware.

/cc @dblock

@@ -10,6 +10,8 @@
#### Fixes

* [#1357](https://github.com/ruby-grape/grape/pull/1357): Don't include fixed named captures as route params - [@namusyaka](https://github.com/namusyaka).
* [#1359](https://github.com/ruby-grape/grape/pull/1359): Return 404 even if version is using as header - [@namusyaka](https://github.com/namusyaka).
* [#1359](https://github.com/ruby-grape/grape/pull/1359): Avoid evaluating the same route twice - [@namusyaka](https://github.com/namusyaka), [@dblock](https://github.com/dblock).
Copy link
Member

Choose a reason for hiding this comment

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

Thanks for giving me credit ;)

@dblock dblock merged commit 0e10bbe into master Apr 11, 2016
@dblock
Copy link
Member

dblock commented Apr 11, 2016

@namusyaka I am not sure I understand what you're saying with regards to PATCH though. Is there're something left to address that you're working on?

@namusyaka namusyaka deleted the fix-router-bugs branch September 14, 2016 04:08
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