Fix static file handler

This commit is contained in:
Sdogruyol 2015-12-10 21:20:32 +02:00
parent e4da65f1f2
commit 85a383b328
1 changed files with 1 additions and 2 deletions

View File

@ -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 == "/"