Rebased to master and update to Crystal 0.27.0

This commit is contained in:
sdogruyol 2018-12-17 22:20:21 +03:00
parent 4fefd9cb5c
commit 678adaa375
12 changed files with 71 additions and 136 deletions

View file

@ -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