From 4b048564246817e66c9e5fb70cddf7a59fc2bd16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Tue, 6 Jun 2017 14:06:28 +0200 Subject: [PATCH] close connection on /info to make sure each call goes through round robin --- server.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index e7703d0..89094ba 100644 --- a/server.js +++ b/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(); });