Skip to content

Instantly share code, notes, and snippets.

@asterite
Created January 7, 2016 00:21
Show Gist options
  • Save asterite/812d289ed01edc62a73a to your computer and use it in GitHub Desktop.
Save asterite/812d289ed01edc62a73a to your computer and use it in GitHub Desktop.
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