aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-03-12 16:03:44 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-03-12 16:03:44 +0000
commitde37f7df4f6bfe369598b2f92b07ce9c2c212e76 (patch)
treec1a4b5833b843580eb87db1221befba0e6ee8e24 /railties
parent3a90c31a566ec3a818e5cc8f0c2dca58ad305c27 (diff)
downloadrails-de37f7df4f6bfe369598b2f92b07ce9c2c212e76.tar.gz
rails-de37f7df4f6bfe369598b2f92b07ce9c2c212e76.tar.bz2
rails-de37f7df4f6bfe369598b2f92b07ce9c2c212e76.zip
Mime types are separated by a comma, not semicolon, in the Accept header. Also switch all internal configuration of mime types away from strings and over to Mime::Type [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3847 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r--railties/html/javascripts/prototype.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/html/javascripts/prototype.js b/railties/html/javascripts/prototype.js
index 5093f40189..a9195b89e6 100644
--- a/railties/html/javascripts/prototype.js
+++ b/railties/html/javascripts/prototype.js
@@ -704,7 +704,7 @@ Ajax.Request.prototype = Object.extend(new Ajax.Base(), {
var requestHeaders =
['X-Requested-With', 'XMLHttpRequest',
'X-Prototype-Version', Prototype.Version,
- 'Accept', 'text/javascript; text/html; text/xml; */*' ];
+ 'Accept', 'text/javascript, text/xml, text/html, */*' ];
if (this.options.method == 'post') {
requestHeaders.push('Content-type',