Skip to content

Commit

Permalink
v0.17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sdogruyol committed Nov 23, 2016
1 parent bf9adfb commit f11b0e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
@@ -1,4 +1,4 @@
# Next
# 0.17.0 (23-11-2016)

- Reimplemented Request middleware / filter routing.

Expand Down Expand Up @@ -52,6 +52,8 @@ end
end
```

- Update `multipart.cr` to `v0.1.1`

# 0.16.1 (12-10-2016)

- Improved Multipart support with more info on parsed files. `parse_multipart(env)` now yields
Expand Down
2 changes: 1 addition & 1 deletion src/kemal.cr
Expand Up @@ -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.

Copy link
@Sija

Sija Nov 23, 2016

Contributor

Proper path for the time being would be lib/kemal/src/images/#{image}. Maybe it would be a good idea to move images folder out of src too btw?

if File.exists? file_path

This comment has been minimized.

Copy link
@Sija

Sija Nov 23, 2016

Contributor

Right now, without else branch returning 404 Not Found, there's incorrect 200 OK response sent.

send_file env, file_path
end
Expand Down

0 comments on commit f11b0e0

Please sign in to comment.