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