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 b86e7f9 commit 2c6b732Copy full SHA for 2c6b732
1 file changed
lib/rest.js
@@ -67,7 +67,8 @@ class RestClient {
67
// Only apply proxy agents if custom agents are not explicitly provided
68
// Priority: explicit httpsAgent/httpAgent > proxy config > default
69
const hasCustomAgents =
70
- 'httpsAgent' in this.restClientConfig || 'httpAgent' in this.restClientConfig;
+ this.restClientConfig &&
71
+ ('httpsAgent' in this.restClientConfig || 'httpAgent' in this.restClientConfig);
72
const proxyAgents = hasCustomAgents ? {} : getProxyAgentForUrl(url, this.restClientConfig);
73
74
return this.axiosInstance
0 commit comments