Skip to content
Browse files

makes it sound less misleading

  • Loading branch information...
1 parent 5de61cc commit cac24516b347b642d00d07a9e21a367c6d062ae2 @shunsukeaida shunsukeaida committed Jul 1, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_dispatch/http/request.rb
View
4 actionpack/lib/action_dispatch/http/request.rb
@@ -209,8 +209,8 @@ def content_length
end
# Returns true if the "X-Requested-With" header contains "XMLHttpRequest"
- # (case-insensitive). All major JavaScript libraries send this header with
- # every Ajax request.
+ # (case-insensitive), which may need to be manually added depending on the
+ # choice of JavaScript libraries and frameworks.
def xml_http_request?
@env['HTTP_X_REQUESTED_WITH'] =~ /XMLHttpRequest/i
end

0 comments on commit cac2451

Please sign in to comment.
Something went wrong with that request. Please try again.