Skip to content

Commit 4869caa

Browse files
committed
fix: request options usage for download schema process
1 parent 55a5aa6 commit 4869caa

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/util/request.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ class Request {
2929
/**
3030
* @type {Partial<import("node-fetch").RequestInit>}
3131
*/
32-
const requestOptions = {
33-
...(this.config.requestOptions || {}),
34-
};
32+
const requestOptions = {};
3533

3634
if (disableStrictSSL && !_.startsWith(url, "http://")) {
3735
requestOptions.agent = new https.Agent({
@@ -44,7 +42,7 @@ class Request {
4442
};
4543
}
4644

47-
Object.assign(requestOptions, options);
45+
_.merge(requestOptions, options, this.config.requestOptions);
4846

4947
try {
5048
const response = await fetch(url, requestOptions);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy