From 689fc7cff6e9657ad45c2a26c8dc464c0756d0d9 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Thu, 28 Dec 2023 08:51:41 +1100 Subject: [PATCH] Fix content-type for rss feeds --- config.ru | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config.ru b/config.ru index c67a2fc..6fbe276 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" - headers["Content-Type"] = "text/html; charset=utf-8" - # end + unless headers["Content-Type"].include? "xml" + headers["Content-Type"] = "text/html; charset=utf-8" + end end run Hanami.app