class ActionDispatch::HostAuthorization::DefaultResponseApp
def response_body(request)
def response_body(request) return "" unless request.get_header("action_dispatch.show_detailed_exceptions") template = DebugView.new(hosts: request.env["action_dispatch.blocked_hosts"]) template.render(template: "rescues/blocked_host", layout: "rescues/layout") end