diff options
author | Manuel Knitza <manuel.knitza@uni.kn> | 2013-03-30 15:42:10 +0100 |
---|---|---|
committer | Manuel Knitza <manuel.knitza@uni.kn> | 2013-03-30 15:42:10 +0100 |
commit | 358b07390e28338ddf6fa6e077fdbeb117431c99 (patch) | |
tree | 3a498eb011bba8ef9880c8bc4d2b6359d5bd00d8 | |
parent | d515acae96dd9a74fb398412cc93d22a18329ade (diff) | |
download | etherpad-lite-358b07390e28338ddf6fa6e077fdbeb117431c99.zip |
fix "util.pump() is deprecated. Use readableStream.pipe()"
fix error introduced by b3988e3
-rw-r--r-- | src/node/utils/caching_middleware.js | 2 |
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(); |