This commit is contained in:
Abdullah Alhusaini 2024-07-24 16:51:08 +03:00 committed by GitHub
parent 5554d3d2f1
commit 1d46fd17d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,7 +14,11 @@ class HTTP::Server
end
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
def redirect(url : String | URI, status_code : Int32 = 302, *, body : String? = nil, close : Bool = true)