fix "util.pump() is deprecated. Use readableStream.pipe()"

fix error introduced by b3988e3
pull/1623/merge^2
Manuel Knitza 2013-03-30 15:42:10 +01:00
parent d515acae96
commit 358b07390e
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);
readableStream.pipe(readStream, res);
readStream.pipe(res);
} else {
res.writeHead(statusCode, headers);
res.end();