From d1c788f065d07d505157118b19f89130df42716a Mon Sep 17 00:00:00 2001 From: Sdogruyol Date: Sun, 17 Jul 2016 20:23:45 +0300 Subject: [PATCH] Don't override content_type in Kemal::InitHandler if it's already set --- src/kemal/init_handler.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kemal/init_handler.cr b/src/kemal/init_handler.cr index 41f2a4f..0d49481 100644 --- a/src/kemal/init_handler.cr +++ b/src/kemal/init_handler.cr @@ -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