From 646edb24ca3bc4973dd44a650f214a4c7e9c65a3 Mon Sep 17 00:00:00 2001 From: Sdogruyol Date: Sun, 17 Jul 2016 19:04:03 +0300 Subject: [PATCH] Set Content-Type after call_next in Kemal::InitHandler --- 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 8016c7c..41f2a4f 100644 --- a/src/kemal/init_handler.cr +++ b/src/kemal/init_handler.cr @@ -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