diff --git a/src/kemal/config.cr b/src/kemal/config.cr index 1c7f837..70ba92a 100644 --- a/src/kemal/config.cr +++ b/src/kemal/config.cr @@ -6,11 +6,11 @@ module Kemal # Kemal.config # ``` class Config - INSTANCE = Config.new - HANDLERS = [] of HTTP::Handler - CUSTOM_HANDLERS = [] of Tuple(Nil | Int32, HTTP::Handler) - FILTER_HANDLERS = [] of HTTP::Handler - ERROR_HANDLERS = {} of Int32 => HTTP::Server::Context, Exception -> String + INSTANCE = Config.new + HANDLERS = [] of HTTP::Handler + CUSTOM_HANDLERS = [] of Tuple(Nil | Int32, HTTP::Handler) + FILTER_HANDLERS = [] of HTTP::Handler + ERROR_HANDLERS = {} of Int32 => HTTP::Server::Context, Exception -> String {% if flag?(:without_openssl) %} @ssl : Bool? diff --git a/src/kemal/helpers/helpers.cr b/src/kemal/helpers/helpers.cr index ed23c9c..2a2b87a 100644 --- a/src/kemal/helpers/helpers.cr +++ b/src/kemal/helpers/helpers.cr @@ -46,7 +46,6 @@ end # # ``` # class MyCustomLogger < Kemal::BaseLogHandler -# # def call(env) # puts "I'm logging some custom stuff here." # call_next(env) # => This calls the next handler