mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Fix issues found by ameba
This commit is contained in:
parent
ad3f06417b
commit
774de634aa
2 changed files with 3 additions and 3 deletions
|
@ -38,7 +38,7 @@ describe "Kemal::WebSocketHandler" do
|
||||||
|
|
||||||
it "fetches named url parameters" do
|
it "fetches named url parameters" do
|
||||||
handler = Kemal::WebSocketHandler::INSTANCE
|
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{
|
headers = HTTP::Headers{
|
||||||
"Upgrade" => "websocket",
|
"Upgrade" => "websocket",
|
||||||
"Connection" => "Upgrade",
|
"Connection" => "Upgrade",
|
||||||
|
|
|
@ -159,8 +159,8 @@ module Kemal
|
||||||
end
|
end
|
||||||
|
|
||||||
private def setup_filter_handlers
|
private def setup_filter_handlers
|
||||||
FILTER_HANDLERS.each do |h|
|
FILTER_HANDLERS.each do |handler|
|
||||||
HANDLERS.insert(@handler_position, h)
|
HANDLERS.insert(@handler_position, handler)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue