From b2edcb35ab61edfae19f3f460306929e6e4fbd94 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Thu, 21 Dec 2023 08:25:11 +1100 Subject: [PATCH] Default content-type to text/html --- config.ru | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.ru b/config.ru index f1ef051..82c96ea 100644 --- a/config.ru +++ b/config.ru @@ -20,9 +20,9 @@ end require "adamantium/middleware/header_fix" use Adamantium::Middleware::HeaderFix do |headers, env| - if env["REQUEST_METHOD"] == "HEAD" + # if env["REQUEST_METHOD"] == "HEAD" headers['Content-Type'] = "text/html" - end + # end end run Hanami.app