diff options
author | ShunsukeAida <s.aida@scsk.jp> | 2014-07-01 20:02:47 +0900 |
---|---|---|
committer | ShunsukeAida <s.aida@scsk.jp> | 2014-07-02 00:32:23 +0900 |
commit | cac24516b347b642d00d07a9e21a367c6d062ae2 (patch) | |
tree | b613cdd095e0f5f68ff7a6e4abcdffd2a34e6809 /actionpack | |
parent | 5de61ccb4ad5136d9f71097ab3b551c3cb8f753e (diff) | |
download | rails-cac24516b347b642d00d07a9e21a367c6d062ae2.tar.gz rails-cac24516b347b642d00d07a9e21a367c6d062ae2.tar.bz2 rails-cac24516b347b642d00d07a9e21a367c6d062ae2.zip |
makes it sound less misleading
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 |