Commit 46a642ae authored by Aurel's avatar Aurel

it is not asynchronous here

parent edf96f66
......@@ -74,10 +74,8 @@
if (param.data instanceof FormData) {
xhr.setRequestHeader("Content-Type",
"multipart\/form-data; boundary=" + param.data.getBoundary());
param.data.pipe(buffer, {end: false});
param.data.on("end", function () {
xhr.send(buffer.getContents());
});
param.data.pipe(buffer);
xhr.send(buffer.getContents());
} else {
xhr.send(param.data);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment