Format files and trim trailing whitespace

This commit is contained in:
Omar Roth
2019-03-23 14:05:13 -05:00
parent ce4b07d7d7
commit 0c6cede287
16 changed files with 101 additions and 101 deletions

View File

@@ -62,7 +62,7 @@ class FilteredCompressHandler < Kemal::Handler
call_next env
{% else %}
request_headers = env.request.headers
if request_headers.includes_word?("Accept-Encoding", "gzip")
env.response.headers["Content-Encoding"] = "gzip"
env.response.output = Gzip::Writer.new(env.response.output, sync_close: true)
@@ -70,7 +70,7 @@ class FilteredCompressHandler < Kemal::Handler
env.response.headers["Content-Encoding"] = "deflate"
env.response.output = Flate::Writer.new(env.response.output, sync_close: true)
end
call_next env
{% end %}
end