From 9425869c2b0bd6b7bd496fc11c2e07330540e683 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Mon, 24 Dec 2007 18:44:06 +0000 Subject: [PATCH] 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 --- lib/OpenLayers/Ajax.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/OpenLayers/Ajax.js b/lib/OpenLayers/Ajax.js index df42d33544..94d6d21538 100644 --- a/lib/OpenLayers/Ajax.js +++ b/lib/OpenLayers/Ajax.js @@ -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 || {});