instance method
valid_accept_header
Ruby on Rails edge
Since v3.1.12 Private — implementation detail, not part of the public APISignature
valid_accept_header()
No documentation comment.
Source
# File actionpack/lib/action_dispatch/http/mime_negotiation.rb, line 231
def valid_accept_header
if xhr?
accept.present? || content_mime_type
elsif accept.present?
MimeNegotiation.strict_accept_header || !accept.match?(BROWSER_LIKE_ACCEPTS)
end
end
Defined in actionpack/lib/action_dispatch/http/mime_negotiation.rb line 231
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Http::MimeNegotiation