Fix static file handler for Crystal 1.6.0 (#644)

This commit is contained in:
Anton Maminov 2022-08-04 12:42:18 +03:00 committed by GitHub
parent 4aa28c423c
commit f5d767fe7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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