diff --git a/docker-swarm-multitenant-proxy/src/app.ts b/docker-swarm-multitenant-proxy/src/app.ts index 64b1494..d1ac204 100644 --- a/docker-swarm-multitenant-proxy/src/app.ts +++ b/docker-swarm-multitenant-proxy/src/app.ts @@ -73,7 +73,6 @@ function pingWithHeaders(): Promise<{ data: string, headers: http.IncomingHttpHe app.head('/_ping', async (req, res) => { try { const pingResponse = await pingWithHeaders(); - for(const key of Object.keys(pingResponse.headers)) { res.header(key, pingResponse.headers[key]); } @@ -87,7 +86,6 @@ app.head('/_ping', async (req, res) => { app.get('/_ping', async (req, res) => { try { const pingResponse = await pingWithHeaders(); - for(const key of Object.keys(pingResponse.headers)) { res.header(key, pingResponse.headers[key]); }