Cache request url_params
This commit is contained in:
parent
e7ebb7f45d
commit
b3ebf40201
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue