From 268e501a633afbdc62fcfa8820d632cafa5cbed0 Mon Sep 17 00:00:00 2001 From: Serdar Dogruyol <990485+sdogruyol@users.noreply.github.com> Date: Wed, 29 Jun 2022 13:31:28 +0300 Subject: [PATCH] fix Crystal 1.5.0 warnings --- spec/spec_helper.cr | 4 ++-- src/kemal/handler.cr | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/spec_helper.cr b/spec/spec_helper.cr index 803aacf..0065848 100644 --- a/spec/spec_helper.cr +++ b/spec/spec_helper.cr @@ -4,8 +4,8 @@ require "../src/*" include Kemal class CustomLogHandler < Kemal::BaseLogHandler - def call(env) - call_next env + def call(context) + call_next(context) end def write(message) diff --git a/src/kemal/handler.cr b/src/kemal/handler.cr index bb59238..6016ba7 100644 --- a/src/kemal/handler.cr +++ b/src/kemal/handler.cr @@ -27,8 +27,8 @@ module Kemal end end - def call(env : HTTP::Server::Context) - call_next(env) + def call(context : HTTP::Server::Context) + call_next(context) end # Processes the path based on `only` paths which is a `Array(String)`.