Update CHANGELOG

This commit is contained in:
sdogruyol 2016-09-20 20:32:09 -03:00
parent 39cfe14811
commit cf2144636d
2 changed files with 5 additions and 3 deletions

View file

@ -1,6 +1,8 @@
# Next
- Add `gzip` helper to enable / disable gzip compression on responses.
- Static file caching with etag and gzip (thanks @crisward)
- `Kemal.run` now accepts port to listen.
# 0.15.1 (05-09-2015)

View file

@ -5,8 +5,8 @@ require "./kemal/middleware/*"
module Kemal
# The command to run a `Kemal` application.
# The port can be given to `#run` but is optionnal.
# If not given Kemal will use the default config port (`Kemal::Config#port`)
# The port can be given to `#run` but is optional.
# If not given Kemal will use `Kemal::Config#port`
def self.run(port = nil)
Kemal::CLI.new
config = Kemal.config
@ -15,7 +15,7 @@ module Kemal
config.port = port if port
config.server = HTTP::Server.new(config.host_binding, config.port, config.handlers)
{% if ! flag?(:without_openssl) %}
{% if !flag?(:without_openssl) %}
config.server.tls = config.ssl
{% end %}