union
Advanced tools
Comparing version 0.4.5 to 0.4.6
@@ -170,2 +170,14 @@ /* | ||
ResponseStream.prototype.pipe = function () { | ||
var self = this, | ||
dest; | ||
self.dest = dest = HttpStream.prototype.pipe.apply(self, arguments); | ||
dest.on('drain', function() { | ||
self.emit('drain') | ||
}) | ||
return dest; | ||
}; | ||
ResponseStream.prototype.write = function (data) { | ||
@@ -175,3 +187,3 @@ this.modified = true; | ||
if (this.writable) { | ||
this.emit('data', data); | ||
return this.dest.write(data); | ||
} | ||
@@ -178,0 +190,0 @@ }; |
{ | ||
"name": "union", | ||
"description": "A hybrid buffered / streaming middleware kernel backwards compatible with connect.", | ||
"version": "0.4.5", | ||
"version": "0.4.6", | ||
"author": "Charlie Robbins <charlie.robbins@gmail.com>", | ||
@@ -6,0 +6,0 @@ "maintainers": [ |
60076
1298