Class: ActionDispatch::HostAuthorization::DefaultResponseApp
- Inherits:
-
Object
- Object
- ActionDispatch::HostAuthorization::DefaultResponseApp
- Defined in:
- 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
[View source]
88 89 90 91 92 93 94 |
# File 'lib/action_dispatch/middleware/host_authorization.rb', line 88 def call(env) request = Request.new(env) format = request.xhr? ? "text/plain" : "text/html" log_error(request) response(format, response_body(request)) end |