Try send a default header
This commit is contained in:
@@ -23,7 +23,7 @@ module Adamantium
|
|||||||
handle_exception StandardError => :handle_error
|
handle_exception StandardError => :handle_error
|
||||||
|
|
||||||
config.default_headers = {
|
config.default_headers = {
|
||||||
"Content-Type" => "text/html"
|
"Content-Type" => "application/octet-stream"
|
||||||
}
|
}
|
||||||
|
|
||||||
def cache(key:, content:)
|
def cache(key:, content:)
|
||||||
|
@@ -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"
|
if env["REQUEST_METHOD"] == "HEAD"
|
||||||
headers['Content-Type'] = "text/html"
|
headers['Content-Type'] = "text/html"
|
||||||
# end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
run Hanami.app
|
run Hanami.app
|
||||||
|
Reference in New Issue
Block a user