instance method
valid_accept_header
Ruby on Rails 7.0.10
Since v3.1.12 PrivateSignature
valid_accept_header()
No documentation comment.
Source
# File actionpack/lib/action_dispatch/http/mime_negotiation.rb, line 181
def valid_accept_header # :doc:
(xhr? && (accept.present? || content_mime_type)) ||
(accept.present? && !accept.match?(BROWSER_LIKE_ACCEPTS))
end
Defined in actionpack/lib/action_dispatch/http/mime_negotiation.rb line 181
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Http::MimeNegotiation