Don't override content_type in Kemal::InitHandler if it's already set

This commit is contained in:
Sdogruyol 2016-07-17 20:23:45 +03:00
parent 646edb24ca
commit d1c788f065
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ module Kemal
def call(context)
context.response.headers.add "X-Powered-By", "Kemal"
call_next context
context.response.content_type = "text/html"
context.response.content_type = "text/html" unless context.response.headers.has_key?("Content-Type")
end
end
end