Make compatyble with crystal 0.10.0

This commit is contained in:
Alfonso Uceda Pompa 2015-12-24 16:25:00 +01:00
parent fbc21b197a
commit e39770b433
2 changed files with 3 additions and 3 deletions

View file

@ -31,7 +31,7 @@ at_exit do
# This route serves the built-in images for not_found and exceptions.
get "/__kemal__/:image" do |env|
image = env.params["image"]
file_path = File.expand_path("libs/kemal/images/#{image}", Dir.working_directory)
file_path = File.expand_path("libs/kemal/images/#{image}", Dir.current)
env.add_header "Content-Type", "application/octet-stream"
File.read(file_path)
end