Fix content-type for rss feeds

This commit is contained in:
2023-12-28 08:51:41 +11:00
parent 6004e38434
commit 689fc7cff6

View File

@@ -20,9 +20,9 @@ end
require "adamantium/middleware/header_fix" require "adamantium/middleware/header_fix"
use Adamantium::Middleware::HeaderFix do |headers, env| use Adamantium::Middleware::HeaderFix do |headers, env|
# if env["REQUEST_METHOD"] == "HEAD" unless headers["Content-Type"].include? "xml"
headers["Content-Type"] = "text/html; charset=utf-8" headers["Content-Type"] = "text/html; charset=utf-8"
# end end
end end
run Hanami.app run Hanami.app