-
-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
This comment has been minimized.
Sorry, something went wrong. |
||
if File.exists? file_path | ||
This comment has been minimized.
Sorry, something went wrong.
Sija
Contributor
|
||
send_file env, file_path | ||
end | ||
|
Proper path for the time being would be
lib/kemal/src/images/#{image}
. Maybe it would be a good idea to moveimages
folder out ofsrc
too btw?