Cache request url_params

This commit is contained in:
sdogruyol 2016-05-21 15:00:44 +03:00
parent e7ebb7f45d
commit b3ebf40201

View file

@ -3,7 +3,7 @@
class HTTP::Server
class Context
def params
@request.url_params = route_lookup.params
@request.url_params ||= route_lookup.params
@params ||= Kemal::ParamParser.new(@request)
end