Skip to content

Commit

Permalink
fix #683
Browse files Browse the repository at this point in the history
  • Loading branch information
a-alhusaini committed Jul 23, 2024
1 parent 5554d3d commit f6075d3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/kemal/ext/context.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f6075d3

Please sign in to comment.