Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 3845

Show
Ignore:
Timestamp:
03/12/06 06:04:03 (3 years ago)
Author:
david
Message:

Use accept headers

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/railties/html/javascripts/prototype.js

    r3795 r3845  
    704704    var requestHeaders = 
    705705      ['X-Requested-With', 'XMLHttpRequest', 
    706        'X-Prototype-Version', Prototype.Version]; 
     706       'X-Prototype-Version', Prototype.Version, 
     707       'Accept', 'text/javascript; text/html; text/xml; */*' ]; 
    707708 
    708709    if (this.options.method == 'post') {