Try send a default header

This commit is contained in:
2023-12-21 08:32:22 +11:00
parent b2edcb35ab
commit fa665e1954
2 changed files with 3 additions and 3 deletions

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