From 3a90c31a566ec3a818e5cc8f0c2dca58ad305c27 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 12 Mar 2006 06:04:03 +0000 Subject: Use accept headers git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3845 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/html/javascripts/prototype.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'railties/html/javascripts/prototype.js') diff --git a/railties/html/javascripts/prototype.js b/railties/html/javascripts/prototype.js index c528a4956d..5093f40189 100644 --- a/railties/html/javascripts/prototype.js +++ b/railties/html/javascripts/prototype.js @@ -703,7 +703,8 @@ Ajax.Request.prototype = Object.extend(new Ajax.Base(), { setRequestHeaders: function() { var requestHeaders = ['X-Requested-With', 'XMLHttpRequest', - 'X-Prototype-Version', Prototype.Version]; + 'X-Prototype-Version', Prototype.Version, + 'Accept', 'text/javascript; text/html; text/xml; */*' ]; if (this.options.method == 'post') { requestHeaders.push('Content-type', -- cgit v1.2.3