pump isdeprecated

This commit is contained in:
John McLear 2013-03-23 17:55:34 +00:00
parent e050ad57e4
commit b3988e30d5
1 changed files with 1 additions and 1 deletions

View File

@ -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();