From dac4d528ffb308ff1b9dc4f352a732ebaae83165 Mon Sep 17 00:00:00 2001 From: Anton Maminov Date: Sat, 30 Jul 2022 14:52:47 +0300 Subject: [PATCH] fix static file handler --- 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