@ -23,9 +23,7 @@ Stream.prototype.pipe = function (dest, options) {
* source gets the 'end' event.
*/
options.end = options && options.end === false ? false : true;
if (options.end) {
if (!options || options.end === false) {
source.on("end", function () {
dest.end();
});