pump isdeprecated
This commit is contained in:
parent
e050ad57e4
commit
b3988e30d5
|
@ -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 New Issue