Browse Source

close connection on /info to make sure each call goes through round robin

pull/2/head
Nicolas Massé 9 years ago
parent
commit
4b04856424
  1. 5
      server.js

5
server.js

@ -19,7 +19,10 @@ router.get("/info",function(req,res){
color: color,
podName: process.env["HOSTNAME"],
};
res.type('application/json').send(JSON.stringify(response));
res.type('application/json')
.set("Connection", "close")
.send(JSON.stringify(response))
.end();
});

Loading…
Cancel
Save