From fb8a7a5adc03e4b48baf38f7574e180479f775a8 Mon Sep 17 00:00:00 2001 From: Xavier Mamano Date: Sat, 3 Dec 2011 18:13:40 +0100 Subject: [PATCH] Apply the patch: https://github.com/ilinsky/xmlhttprequest/commit/9f1d0fd49b0583073c1ca19e220dc13fe0f509b4 --- lib/OpenLayers/Request/XMLHttpRequest.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/OpenLayers/Request/XMLHttpRequest.js b/lib/OpenLayers/Request/XMLHttpRequest.js index f5b932bcc6..db322955d9 100644 --- a/lib/OpenLayers/Request/XMLHttpRequest.js +++ b/lib/OpenLayers/Request/XMLHttpRequest.js @@ -249,8 +249,8 @@ // BUGFIX: Gecko - fails sending Element (this is up to the implementation either to standard) if (vData && vData.nodeType) { vData = window.XMLSerializer ? new window.XMLSerializer().serializeToString(vData) : vData.xml; - if (!oRequest._headers["Content-Type"]) - oRequest._object.setRequestHeader("Content-Type", "application/xml"); + if (!this._headers["Content-Type"]) + this._object.setRequestHeader("Content-Type", "application/xml"); } this._data = vData;