diff --git a/lib/caronte/streams/proxy.js b/lib/caronte/streams/proxy.js index 10afdae..5112b43 100644 --- a/lib/caronte/streams/proxy.js +++ b/lib/caronte/streams/proxy.js @@ -12,6 +12,8 @@ function ProxyStream() { this.once('finish', function() { self.onFinish(); }); } +require('util').inherits(ProxyStream, Duplex); + ProxyStream.prototype.onPipe = function(request) { var self = this; @@ -43,4 +45,3 @@ ProxyStream.prototype._read = function(size) { this.push(chunk); }; -require('util').inherits(ForwardStream, Duplex); \ No newline at end of file