fix leaky global variable

pull/1/head
ansuz 8 years ago
parent a2e5c96115
commit 2f9283a677

@ -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 () {};

Loading…
Cancel
Save