instance method
valid_accept_header
Ruby on Rails 3.1.12
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 && 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