update healthcheck.js

This commit is contained in:
Louis Lam 2021-11-02 22:03:02 +08:00
parent 69f5112b38
commit e496c3b3be

View File

@ -35,7 +35,7 @@ let options = {
let request = client.request(options, (res) => {
console.log(`Health Check OK [Res Code: ${res.statusCode}]`);
if (res.statusCode === 200) {
if (res.statusCode === 302) {
process.exit(0);
} else {
process.exit(1);