fix(small fix): update

This commit is contained in:
Philipp Kunz 2018-07-20 00:50:36 +02:00
parent c9f6198114
commit 52bf520eb9

View File

@ -98,7 +98,9 @@ export let request = async (
request.write(optionsArg.requestBody); request.write(optionsArg.requestBody);
request.end(); request.end();
} else if (optionsArg.requestBody instanceof plugins.formData) { } else if (optionsArg.requestBody instanceof plugins.formData) {
optionsArg.requestBody.pipe(request); optionsArg.requestBody.pipe(request).on('finish', event => {
request.end();
});
} }
} else { } else {
request.end(); request.end();