Releases: kemalcr/kemal
Releases Β· kemalcr/kemal
v1.1.2
v1.1.1
v1.1.0
- You can now set your own application name for startup message #606. Thanks @aravindavk π
- Add array of paths support for before/after filters #605. Thanks @sdogruyol π
- Fixed executing filters when before and after is defined at the same time #612. Thanks @mamantoha π
- Set content type to text/html for 500 exceptions #616. Thanks @sdogruyol π
v1.0.0
- Crystal 1.0.0 support π
- Update Radix to use latest 0.4.0 #596. Thanks @luislavena π
- Use latest version of Ameba dependency (dev) #597. Thanks @luislavena π
- Fix StaticFileHandler failing spec #599. Thanks @jinn999 π
v0.27.0
- Crystal 0.35.x support π Thanks @bcardiff π
- Fix issues with responding with long strings #576. Thanks @mamantoha π
- Fix broken WebSocket support in 0.35.0 #577. Thanks @mamantoha π
- Allow to set optional response body on redirects #561. Thanks @mamantoha π
v0.26.1
- Fix process request when a response already closed #550. Thanks @mamantoha π
- Switch to new Ameba repository #549. Thanks @mamantoha π
- Check for
KEMAL_ENVvariable already inConfig#initialize#552. Thanks @Sija π - Cleanup Ameba warnings #551. Thanks @Sija π
- Flush io buffer after each write to log #554. Thanks @mang π
v0.26.0
0.25.2
-
Crystal 0.27.2 support π
-
Add option to config to parse or not command line parameters #483. Thanks @diegogub π
-
Allow to set filename for
send_file#512. Thanks @mamantoha π
send_file env, "./asset/image.jpeg", filename: "image.jpg"v0.25.1
v0.25.0
-
Crystal 0.27.0 support.
-
[breaking change] Added back
env.params.files.
Here's a fully working sample for reading a image file upload image1 and saving it under public/uploads.
post "/upload" do |env|
file = env.params.files["image1"].tmpfile
file_path = ::File.join [Kemal.config.public_folder, "uploads/", file.filename]
File.open(file_path, "w") do |f|
IO.copy(file, f)
end
"Upload ok"
endTo test
curl -F "image1=@/Users/serdar/Downloads/kemal.png" http://localhost:3000/upload
- Cache HTTP routes to increase performance π #493