Set Content-Type after call_next in Kemal::InitHandler

This commit is contained in:
Sdogruyol 2016-07-17 19:04:03 +03:00
parent 3e3200e23e
commit 646edb24ca
1 changed files with 1 additions and 1 deletions

View File

@ -5,9 +5,9 @@ module Kemal
INSTANCE = new
def call(context)
context.response.content_type = "text/html"
context.response.headers.add "X-Powered-By", "Kemal"
call_next context
context.response.content_type = "text/html"
end
end
end