From bd3df45010f282997cae3a699c7ecb885c01bdf8 Mon Sep 17 00:00:00 2001 From: yawnt Date: Fri, 9 Aug 2013 20:52:55 +0200 Subject: [PATCH] [fix] woops --- lib/caronte/streams/proxy.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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