From f5d767fe7e02baed9e828ab750ef6809ba94652d Mon Sep 17 00:00:00 2001 From: Anton Maminov Date: Thu, 4 Aug 2022 12:42:18 +0300 Subject: [PATCH] Fix static file handler for Crystal 1.6.0 (#644) --- src/kemal/static_file_handler.cr | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/kemal/static_file_handler.cr b/src/kemal/static_file_handler.cr index ef592d0..dbeca28 100644 --- a/src/kemal/static_file_handler.cr +++ b/src/kemal/static_file_handler.cr @@ -75,5 +75,9 @@ module Kemal call_next(context) end end + + private def modification_time(file_path) + File.info(file_path).modification_time + end end end