summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Knitza <manuel.knitza@uni.kn>2013-03-30 15:42:10 +0100
committerManuel Knitza <manuel.knitza@uni.kn>2013-03-30 15:42:10 +0100
commit358b07390e28338ddf6fa6e077fdbeb117431c99 (patch)
tree3a498eb011bba8ef9880c8bc4d2b6359d5bd00d8
parentd515acae96dd9a74fb398412cc93d22a18329ade (diff)
downloadetherpad-lite-358b07390e28338ddf6fa6e077fdbeb117431c99.zip
fix "util.pump() is deprecated. Use readableStream.pipe()"
fix error introduced by b3988e3 
-rw-r--r--src/node/utils/caching_middleware.js2
1 files changed, 1 insertions, 1 deletions
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();