From 0235fb6cd708a628630bf020a3c6aca686765707 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Wed, 14 Oct 2020 12:03:46 -0700 Subject: [PATCH] Fixed WSMAN stack strict error. --- amt/amt-wsman-comm.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amt/amt-wsman-comm.js b/amt/amt-wsman-comm.js index d9810cdd..2640c8b3 100644 --- a/amt/amt-wsman-comm.js +++ b/amt/amt-wsman-comm.js @@ -176,14 +176,14 @@ var CreateWsmanComm = function (host, port, user, pass, tls, tlsoptions, ciraCon // NODE.js specific private method obj.parseDigest = function (header) { var t = header.substring(7).split(','); - for (i in t) t[i] = t[i].trim(); + for (var i in t) t[i] = t[i].trim(); return t.reduce(function (obj, s) { var parts = s.split('='); obj[parts[0]] = parts[1].replace(new RegExp('\"', 'g'), ''); return obj; }, {}) } // NODE.js specific private method obj.renderDigest = function (params) { var paramsnames = []; - for (i in params) { paramsnames.push(i); } + for (var i in params) { paramsnames.push(i); } return 'Digest ' + paramsnames.reduce(function (s1, ii) { return s1 + ',' + ii + '="' + params[ii] + '"' }, '').substring(1); }