Class: ActionDispatch::HostAuthorization::DefaultResponseApp
- Defined in:
- actionpack/lib/action_dispatch/middleware/host_authorization.rb
Overview
:nodoc:
Constant Summary collapse
- RESPONSE_STATUS =
403
Instance Method Summary collapse
Instance Method Details
#call(env) ⇒ Object
87 88 89 90 91 92 93 |
# File 'actionpack/lib/action_dispatch/middleware/host_authorization.rb', line 87 def call(env) request = Request.new(env) format = request.xhr? ? "text/plain" : "text/html" log_error(request) response(format, response_body(request)) end |