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:
@@ -249,8 +249,8 @@
|
|||||||
// BUGFIX: Gecko - fails sending Element (this is up to the implementation either to standard)
|
// BUGFIX: Gecko - fails sending Element (this is up to the implementation either to standard)
|
||||||
if (vData && vData.nodeType) {
|
if (vData && vData.nodeType) {
|
||||||
vData = window.XMLSerializer ? new window.XMLSerializer().serializeToString(vData) : vData.xml;
|
vData = window.XMLSerializer ? new window.XMLSerializer().serializeToString(vData) : vData.xml;
|
||||||
if (!oRequest._headers["Content-Type"])
|
if (!this._headers["Content-Type"])
|
||||||
oRequest._object.setRequestHeader("Content-Type", "application/xml");
|
this._object.setRequestHeader("Content-Type", "application/xml");
|
||||||
}
|
}
|
||||||
|
|
||||||
this._data = vData;
|
this._data = vData;
|
||||||
|
|||||||
Reference in New Issue
Block a user