summaryrefslogtreecommitdiff
path: root/lib/stream.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/stream.js')
-rw-r--r--lib/stream.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/stream.js b/lib/stream.js
index 98f0c37fcb..c5fcd2a4c2 100644
--- a/lib/stream.js
+++ b/lib/stream.js
@@ -67,4 +67,6 @@ Stream.prototype.pipe = function(dest, options) {
dest.on('resume', function() {
if (source.readable) source.resume();
});
+
+ dest.emit('pipe', source);
};