don't re-add if array is tagged with __injected
This commit is contained in:
parent
2990ddc1c3
commit
d4ee490253
|
@ -4096,4 +4096,6 @@ var cas = module.exports = [
|
|||
];
|
||||
module.exports.inject = function () {
|
||||
var opts = require('https').globalAgent.options;
|
||||
if (!opts.ca || opts.ca.length < 100) { opts.ca = (opts.ca||[]).concat(cas); }};
|
||||
if (!opts.ca || !opts.ca.__injected) { opts.ca = (opts.ca||[]).concat(cas); }
|
||||
opts.ca.__injected = true;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue