Small refactor

This commit is contained in:
Sdogruyol 2016-01-16 12:56:01 +02:00
parent 7ffa6700de
commit 5fb5a4c6ae
2 changed files with 2 additions and 3 deletions

View file

@ -32,7 +32,7 @@ class Kemal::Logger < HTTP::Handler
method = request.method.colorize(methodColor)
end
output_message = "#{time} |#{status_code}| #{method} #{request.resource} - (#{elapsed_text})\n"
output_message = "#{time} |#{status_code}| #{method} #{request.resource} - #{elapsed_text}\n"
write output_message
response
end

View file

@ -1,7 +1,6 @@
class Kemal::StaticFileHandler < HTTP::StaticFileHandler
def call(request)
request_path = request.path.not_nil!
return call_next(request) if request_path == "/"
return call_next(request) if request.path.not_nil! == "/"
super
end
end