Permalink
Browse files

Use accept headers

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3845 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 7af12d0 commit 3a90c31a566ec3a818e5cc8f0c2dca58ad305c27 @dhh dhh committed Mar 12, 2006
Showing with 2 additions and 1 deletion.
  1. +2 −1 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',

0 comments on commit 3a90c31

Please sign in to comment.