mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
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 HTTP::Server
|
||||||
class Context
|
class Context
|
||||||
def params
|
def params
|
||||||
@request.url_params = route_lookup.params
|
@request.url_params ||= route_lookup.params
|
||||||
@params ||= Kemal::ParamParser.new(@request)
|
@params ||= Kemal::ParamParser.new(@request)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue