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

View file

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