Update CHANGELOG

This commit is contained in:
Serdar Dogruyol 2017-08-24 01:05:19 +03:00
parent c81f8f979a
commit b113b3dd73

View file

@ -1,3 +1,26 @@
# Next
- Dynamically insert handlers. Fixes #376.
- Add context to WebSocket. This allows one to use `HTTP::Server::Context` in `ws` declarations. Fixes #349.
```ruby
ws "/:room_name" do |socket, env|
env.params.url["room_name"]
end
```
- Add support for customizing the headers of built-in `Kemal::StaticFileHandler`. Useful for supporting `CORS`.
```ruby
static_headers do |response, filepath, filestat|
if filepath =~ /\.html$/
response.headers.add("Access-Control-Allow-Origin", "*")
end
response.headers.add("Content-Size", filestat.size.to_s)
end
end
```
# 0.20.0 (01-07-2017)
- Crystal 0.23.0 support! As always, Kemal is compatible with the latest major release of Crystal 💎