From 85a383b3281b8cd63ca45e6d8a6911f20fa6381d Mon Sep 17 00:00:00 2001 From: Sdogruyol Date: Thu, 10 Dec 2015 21:20:32 +0200 Subject: [PATCH] Fix static file handler --- src/kemal/static_file_handler.cr | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/kemal/static_file_handler.cr b/src/kemal/static_file_handler.cr index 21f8ad2..095edf2 100644 --- a/src/kemal/static_file_handler.cr +++ b/src/kemal/static_file_handler.cr @@ -1,7 +1,6 @@ require "http/server" -require "ecr/macros" -class Kemal::StaticFileHandler < HTTP::Handler +class Kemal::StaticFileHandler < HTTP::StaticFileHandler def call(request) request_path = request.path.not_nil! return call_next(request) if request_path == "/"