mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Decouple ParamContainer which makes the code cleaner, and fix kemal.cr
url -- by @sdogruyol
This commit is contained in:
parent
8267ffe2c5
commit
e53ba1d9da
2 changed files with 20 additions and 16 deletions
|
@ -18,7 +18,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"]
|
||||
image = env.params.url["image"]
|
||||
file_path = File.expand_path("libs/kemal/images/#{image}", Dir.current)
|
||||
if File.exists? file_path
|
||||
env.response.headers.add "Content-Type", "application/octet-stream"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue