Default content-type to text/html

This commit is contained in:
2023-12-21 08:25:11 +11:00
parent a7678abe92
commit b2edcb35ab

View File

@@ -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