diff --git a/lib/_stream_readable.js b/lib/_stream_readable.js index 64ff744b8db677..dcbfbc36648e64 100644 --- a/lib/_stream_readable.js +++ b/lib/_stream_readable.js @@ -826,6 +826,8 @@ function fromList(n, state) { // read it all, truncate the array. if (stringMode) ret = list.join(''); + else if (list.length === 1) + ret = list[0]; else ret = Buffer.concat(list, length); list.length = 0;