instance method
valid_accept_header
Ruby on Rails 3.2.22.5
Since v3.1.12Signature
valid_accept_header()
No documentation comment.
Source
# File actionpack/lib/action_dispatch/http/mime_negotiation.rb, line 100
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 100
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Http::MimeNegotiation