Skip to content

Commit

Permalink
Fix issues found by ameba
Browse files Browse the repository at this point in the history
  • Loading branch information
Sija authored Dec 27, 2023
1 parent ad3f064 commit 774de63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/websocket_handler_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe "Kemal::WebSocketHandler" do

it "fetches named url parameters" do
handler = Kemal::WebSocketHandler::INSTANCE
ws "/:id" { |_, c| c.ws_route_lookup.params["id"] }
ws "/:id" { |_, context| context.ws_route_lookup.params["id"] }
headers = HTTP::Headers{
"Upgrade" => "websocket",
"Connection" => "Upgrade",
Expand Down
4 changes: 2 additions & 2 deletions src/kemal/config.cr
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ module Kemal
end

private def setup_filter_handlers
FILTER_HANDLERS.each do |h|
HANDLERS.insert(@handler_position, h)
FILTER_HANDLERS.each do |handler|
HANDLERS.insert(@handler_position, handler)
end
end
end
Expand Down

0 comments on commit 774de63

Please sign in to comment.