mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
fix "util.pump() is deprecated. Use readableStream.pipe()"
fix error introduced by b3988e3
This commit is contained in:
parent
d515acae96
commit
358b07390e
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue