From 3582a15f96232f9fca1d6bbcbec110627049e6c9 Mon Sep 17 00:00:00 2001 From: Michael Jedich Date: Sun, 4 Mar 2018 15:29:34 +0100 Subject: [PATCH] https://github.com/danwrong/restler/issues/250 --- lib/multipartform.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/multipartform.js b/lib/multipartform.js index e3829c1..d381662 100644 --- a/lib/multipartform.js +++ b/lib/multipartform.js @@ -130,7 +130,9 @@ Part.prototype = { stream.write("\r\n"); callback(); fs.close(fd, function(err) { - callback(err); + if (err != null) { + callback(err); + } }); } });