method
html_response?
v6.0.0 -
Show latest stable
- Class:
ActionDispatch::ContentSecurityPolicy::Middleware
html_response?(headers)private
No documentation available.
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 35
def html_response?(headers)
if content_type = headers[CONTENT_TYPE]
content_type =~ /html/
end
end