mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
parent
5554d3d2f1
commit
1d46fd17d7
1 changed files with 5 additions and 1 deletions
|
@ -14,7 +14,11 @@ class HTTP::Server
|
||||||
end
|
end
|
||||||
|
|
||||||
def params
|
def params
|
||||||
@params ||= Kemal::ParamParser.new(@request, route_lookup.params)
|
if ws_route_found?
|
||||||
|
@params ||= Kemal::ParamParser.new(@request, ws_route_lookup.params)
|
||||||
|
else
|
||||||
|
@params ||= Kemal::ParamParser.new(@request, route_lookup.params)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def redirect(url : String | URI, status_code : Int32 = 302, *, body : String? = nil, close : Bool = true)
|
def redirect(url : String | URI, status_code : Int32 = 302, *, body : String? = nil, close : Bool = true)
|
||||||
|
|
Loading…
Reference in a new issue