Match XHR behavor at 2.5. The browser default content type is application/xml, so we set that as our default contentType option. Looks like there is no browser default for encoding, so we remove that. r=crschmidt (closes #1232)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@5570 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2007-12-24 18:44:06 +00:00
parent f4df2a3b2a
commit 9425869c2b

View File

@@ -248,8 +248,7 @@ OpenLayers.Ajax.Base = OpenLayers.Class({
this.options = {
method: 'post',
asynchronous: true,
contentType: 'application/x-www-form-urlencoded',
encoding: 'UTF-8',
contentType: 'application/xml',
parameters: ''
};
OpenLayers.Util.extend(this.options, options || {});