mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
pump isdeprecated
This commit is contained in:
parent
e050ad57e4
commit
b3988e30d5
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);
|
||||
util.pump(readStream, res);
|
||||
readableStream.pipe(readStream, res);
|
||||
} else {
|
||||
res.writeHead(statusCode, headers);
|
||||
res.end();
|
||||
|
|
Loading…
Reference in a new issue