Created
January 7, 2016 00:21
-
-
Save asterite/812d289ed01edc62a73a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/beryl/router.cr b/src/beryl/router.cr | |
index 0e8eaa1..f46f312 100644 | |
--- a/src/beryl/router.cr | |
+++ b/src/beryl/router.cr | |
@@ -68,7 +68,7 @@ module Beryl | |
if action.responds_to?(:call) | |
params = result.params | |
- combine_query_params request, params | |
+ # combine_query_params request, params | |
return action.call(request, params) | |
end | |
@@ -95,9 +95,10 @@ module Beryl | |
tree = @routeset[request.method] | |
# ensure request path is at least '/' | |
- unless path = request.path | |
- path = "/" | |
- end | |
+ path = "/" | |
+ # unless path = request.path | |
+ # path = "/" | |
+ # end | |
tree.find(path) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment