From 2f9283a6770b513d5a3193fbc3f2ddbcd4200be2 Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 18 Oct 2016 11:51:35 +0200 Subject: [PATCH] fix leaky global variable --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 2e693c5cd..f24117bd1 100644 --- a/server.js +++ b/server.js @@ -25,7 +25,7 @@ var setHeaders = (function () { var headers = JSON.parse(JSON.stringify(config.httpHeaders)); if (Object.keys(headers).length) { return function (res) { - for (header in headers) { res.setHeader(header, headers[header]); } + for (var header in headers) { res.setHeader(header, headers[header]); } }; } return function () {};