summaryrefslogtreecommitdiff
path: root/lib/stream.js
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-10-10 22:05:49 -0700
committerRyan Dahl <ry@tinyclouds.org>2010-10-10 22:10:47 -0700
commit81ac0d5088c1741632424d28bfda0cef467fa970 (patch)
tree96d95a79e6ecd3160ac7d051fcf883c3c6eadd84 /lib/stream.js
parentcdd1d675a7bba5693c63656bec5a32166a8279d6 (diff)
downloadnode-new-81ac0d5088c1741632424d28bfda0cef467fa970.tar.gz
pipe-test fixes
Diffstat (limited to 'lib/stream.js')
-rw-r--r--lib/stream.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stream.js b/lib/stream.js
index 47a355b76f..189708a93f 100644
--- a/lib/stream.js
+++ b/lib/stream.js
@@ -23,7 +23,7 @@ Stream.prototype.pipe = function (dest, options) {
* source gets the 'end' event.
*/
- if (!options || options.end === false) {
+ if (!options || options.end !== false) {
source.on("end", function () {
dest.end();
});