Skip to content

Commit 03b7ef8

Browse files
Release 5.5.1 (#238)
* 5.5.0 -> 5.5.1-SNAPSHOT * Merge pull request #237 from AlexGalichenko/fix-custom-agent fixed issue in request method in case if this.restClientConfig is not provided in config * Update changelog --------- Co-authored-by: reportportal.io <reportportal.io> Co-authored-by: Alexander Galichenko <alexandr.galichenko@gmail.com>
2 parents 5599291 + df927dd commit 03b7ef8

4 files changed

Lines changed: 6 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
### Fixed
2+
- Client errors when the `restClientConfig` not specified.
13

24
## [5.5.0] - 2025-10-28
35
### Added

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.5.0
1+
5.5.1-SNAPSHOT

lib/rest.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ class RestClient {
6767
// Only apply proxy agents if custom agents are not explicitly provided
6868
// Priority: explicit httpsAgent/httpAgent > proxy config > default
6969
const hasCustomAgents =
70-
'httpsAgent' in this.restClientConfig || 'httpAgent' in this.restClientConfig;
70+
this.restClientConfig &&
71+
('httpsAgent' in this.restClientConfig || 'httpAgent' in this.restClientConfig);
7172
const proxyAgents = hasCustomAgents ? {} : getProxyAgentForUrl(url, this.restClientConfig);
7273

7374
return this.axiosInstance

version_fragment

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
minor
1+
patch

0 commit comments

Comments
 (0)