diff --git a/app/action.rb b/app/action.rb index 38b967c..a4139d7 100644 --- a/app/action.rb +++ b/app/action.rb @@ -22,10 +22,6 @@ module Adamantium handle_exception ROM::TupleCountMismatchError => :not_found handle_exception StandardError => :handle_error - config.default_headers = { - "Content-Type" => "application/octet-stream" - } - def cache(key:, content:) cacher.call(key: key, content: content, expiry: TimeMath.min.advance(Time.now, +10)) end diff --git a/config.ru b/config.ru index f1ef051..cacf359 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" - end + # if env["REQUEST_METHOD"] == "HEAD" + headers['Content-Type'] = "text/html; charset=utf-8" + # end end run Hanami.app