Status code should not be assumed.
parent
118e7928b9
commit
a7c009d0c9
|
@ -164,7 +164,7 @@ CachingMiddleware.prototype = new function () {
|
||||||
res.writeHead(statusCode, headers);
|
res.writeHead(statusCode, headers);
|
||||||
util.pump(readStream, res);
|
util.pump(readStream, res);
|
||||||
} else {
|
} else {
|
||||||
res.writeHead(200, headers);
|
res.writeHead(statusCode, headers);
|
||||||
res.end();
|
res.end();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue