We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55a5aa6 commit 4869caaCopy full SHA for 4869caa
src/util/request.js
@@ -29,9 +29,7 @@ class Request {
29
/**
30
* @type {Partial<import("node-fetch").RequestInit>}
31
*/
32
- const requestOptions = {
33
- ...(this.config.requestOptions || {}),
34
- };
+ const requestOptions = {};
35
36
if (disableStrictSSL && !_.startsWith(url, "http://")) {
37
requestOptions.agent = new https.Agent({
@@ -44,7 +42,7 @@ class Request {
44
42
};
45
43
}
46
47
- Object.assign(requestOptions, options);
+ _.merge(requestOptions, options, this.config.requestOptions);
48
49
try {
50
const response = await fetch(url, requestOptions);
0 commit comments