From 358b07390e28338ddf6fa6e077fdbeb117431c99 Mon Sep 17 00:00:00 2001 From: Manuel Knitza Date: Sat, 30 Mar 2013 15:42:10 +0100 Subject: fix "util.pump() is deprecated. Use readableStream.pipe()" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix error introduced by b3988e3  --- src/node/utils/caching_middleware.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/utils/caching_middleware.js b/src/node/utils/caching_middleware.js index a970bfc9..ab3d8edd 100644 --- a/src/node/utils/caching_middleware.js +++ b/src/node/utils/caching_middleware.js @@ -168,7 +168,7 @@ CachingMiddleware.prototype = new function () { } else if (req.method == 'GET') { var readStream = fs.createReadStream(pathStr); res.writeHead(statusCode, headers); - readableStream.pipe(readStream, res); + readStream.pipe(res); } else { res.writeHead(statusCode, headers); res.end(); -- cgit v1.2.3