diff --git a/node_modules/node-fetch/lib/index.es.js b/node_modules/node-fetch/lib/index.es.js index 37d022c..22bc369 100644 --- a/node_modules/node-fetch/lib/index.es.js +++ b/node_modules/node-fetch/lib/index.es.js @@ -1398,6 +1398,9 @@ function fetch(url, opts) { // build request object const request = new Request(url, opts); const options = getNodeRequestOptions(request); + if (opts && opts.ca) { + options.ca = opts.ca; + } const send = (options.protocol === 'https:' ? https : http).request; const signal = request.signal; diff --git a/node_modules/node-fetch/lib/index.js b/node_modules/node-fetch/lib/index.js index daa44bc..4aae236 100644 --- a/node_modules/node-fetch/lib/index.js +++ b/node_modules/node-fetch/lib/index.js @@ -1402,6 +1402,9 @@ function fetch(url, opts) { // build request object const request = new Request(url, opts); const options = getNodeRequestOptions(request); + if (opts && opts.ca) { + options.ca = opts.ca; + } const send = (options.protocol === 'https:' ? https : http).request; const signal = request.signal; diff --git a/node_modules/node-fetch/lib/index.mjs b/node_modules/node-fetch/lib/index.mjs index e571ea6..7a50519 100644 --- a/node_modules/node-fetch/lib/index.mjs +++ b/node_modules/node-fetch/lib/index.mjs @@ -1396,6 +1396,9 @@ function fetch(url, opts) { // build request object const request = new Request(url, opts); const options = getNodeRequestOptions(request); + if (opts && opts.ca) { + options.ca = opts.ca; + } const send = (options.protocol === 'https:' ? https : http).request; const signal = request.signal;