From bdf772ec9858c3d2eb555a0dc78ad84b569f9628 Mon Sep 17 00:00:00 2001 From: mlohbihler Date: Thu, 1 Oct 2015 10:01:53 -0400 Subject: [PATCH] Made multipart body writing logic consistent with the header writing logic --- lib/multipartform.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/multipartform.js b/lib/multipartform.js index 7196724..475f77d 100644 --- a/lib/multipartform.js +++ b/lib/multipartform.js @@ -128,7 +128,7 @@ Part.prototype = { }); })(); // reader() }); - } else if (this.value instanceof Data) { + } else if (this.value.data) { stream.write(this.value.data); stream.write("\r\n"); callback();