This commit is contained in:
sdogruyol 2016-11-23 20:47:13 +03:00
parent bf9adfbbab
commit f11b0e07e4
2 changed files with 4 additions and 2 deletions

View file

@ -38,7 +38,7 @@ module Kemal
# This route serves the built-in images for not_found and exceptions.
get "/__kemal__/:image" do |env|
image = env.params.url["image"]
file_path = File.expand_path("libs/kemal/images/#{image}", Dir.current)
file_path = File.expand_path("lib/kemal/images/#{image}", Dir.current)
if File.exists? file_path
send_file env, file_path
end