diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-07-01 13:59:34 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-07-01 13:59:34 -0300 |
commit | 7bd62061601ec53c1d79ed9639ed64a93ea4e043 (patch) | |
tree | ee1ee87de71f857d44f8390ebc39c2caeb792e59 /actionpack | |
parent | 72f58b0244fed3d936c107641ca08fc9e343a31e (diff) | |
parent | cac24516b347b642d00d07a9e21a367c6d062ae2 (diff) | |
download | rails-7bd62061601ec53c1d79ed9639ed64a93ea4e043.tar.gz rails-7bd62061601ec53c1d79ed9639ed64a93ea4e043.tar.bz2 rails-7bd62061601ec53c1d79ed9639ed64a93ea4e043.zip |
Merge pull request #16006 from ShunsukeAida/xml_http_request_comment_change
[ci skip] Fixed the documentation of xml_http_request? (aka xhr?)
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/http/request.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/http/request.rb b/actionpack/lib/action_dispatch/http/request.rb index 4d4b443fb4..01f117be99 100644 --- a/actionpack/lib/action_dispatch/http/request.rb +++ b/actionpack/lib/action_dispatch/http/request.rb @@ -209,8 +209,8 @@ module ActionDispatch 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 |