42 lines
1.6 KiB
Diff
42 lines
1.6 KiB
Diff
diff --git a/node_modules/node-fetch/lib/index.es.js b/node_modules/node-fetch/lib/index.es.js
|
|
index 61906c9..51ee2bd 100644
|
|
--- a/node_modules/node-fetch/lib/index.es.js
|
|
+++ b/node_modules/node-fetch/lib/index.es.js
|
|
@@ -1404,6 +1404,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 4b241bf..88de03f 100644
|
|
--- a/node_modules/node-fetch/lib/index.js
|
|
+++ b/node_modules/node-fetch/lib/index.js
|
|
@@ -1408,6 +1408,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 ecf59af..b4af5ff 100644
|
|
--- a/node_modules/node-fetch/lib/index.mjs
|
|
+++ b/node_modules/node-fetch/lib/index.mjs
|
|
@@ -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;
|