From 1d46fd17d7f4e0fd75e7abce5deacbbdc79d14e3 Mon Sep 17 00:00:00 2001 From: Abdullah Alhusaini <44743015+a-alhusaini@users.noreply.github.com> Date: Wed, 24 Jul 2024 16:51:08 +0300 Subject: [PATCH] fix #683 (#684) --- src/kemal/ext/context.cr | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/kemal/ext/context.cr b/src/kemal/ext/context.cr index 545111f..2ed168d 100644 --- a/src/kemal/ext/context.cr +++ b/src/kemal/ext/context.cr @@ -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)