mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Bump exception_page
dependency (#669)
This commit is contained in:
parent
0de0e990e9
commit
9628043e4c
4 changed files with 5 additions and 5 deletions
|
@ -10,7 +10,7 @@ dependencies:
|
||||||
version: ~> 0.4.0
|
version: ~> 0.4.0
|
||||||
exception_page:
|
exception_page:
|
||||||
github: crystal-loot/exception_page
|
github: crystal-loot/exception_page
|
||||||
version: ~> 0.3.0
|
version: ~> 0.4.1
|
||||||
|
|
||||||
development_dependencies:
|
development_dependencies:
|
||||||
ameba:
|
ameba:
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -9,7 +9,7 @@ class HTTP::Server
|
||||||
STORE_MAPPINGS = [Nil, String, Int32, Int64, Float64, Bool]
|
STORE_MAPPINGS = [Nil, String, Int32, Int64, Float64, Bool]
|
||||||
|
|
||||||
macro finished
|
macro finished
|
||||||
alias StoreTypes = Union({{ *STORE_MAPPINGS }})
|
alias StoreTypes = Union({{ STORE_MAPPINGS.splat }})
|
||||||
@store = {} of String => StoreTypes
|
@store = {} of String => StoreTypes
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue