mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Rebased to master and update to Crystal 0.27.0
This commit is contained in:
parent
4fefd9cb5c
commit
678adaa375
12 changed files with 71 additions and 136 deletions
|
@ -28,7 +28,8 @@ describe "Kemal::InitHandler" do
|
|||
io = IO::Memory.new
|
||||
response = HTTP::Server::Response.new(io)
|
||||
context = HTTP::Server::Context.new(request, response)
|
||||
Kemal::InitHandler::INSTANCE.call(context)
|
||||
init_handler = Kemal::InitHandler.new(Kemal::Base.new)
|
||||
init_handler.call(context)
|
||||
context.response.headers["X-Powered-By"]?.should be_nil
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue