Merge pull request #89 from jorix/3593

Fix bug in XMLHttpRequest.js where oRequest is undefined. Fix comes from upstream. Patch from @jorix.
This commit is contained in:
Éric Lemoine
2011-12-03 10:29:44 -08:00

View File

@@ -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;