From de37f7df4f6bfe369598b2f92b07ce9c2c212e76 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 12 Mar 2006 16:03:44 +0000 Subject: 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 --- railties/html/javascripts/prototype.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/html/javascripts') 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', -- cgit v1.2.3