Skip to content

Commit

Permalink
Fix static file handler for Crystal 1.6.0 (#644)
Browse files Browse the repository at this point in the history
  • Loading branch information
mamantoha committed Aug 4, 2022
1 parent 4aa28c4 commit f5d767f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/kemal/static_file_handler.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f5d767f

Please sign in to comment.