Skip to content

Commit 85eea47

Browse files
authored
[Atlassian] Issue of not using proxies inside rest client session (#1488)
* Add proxies to request session Adds the provided proxies to the request session after creation. * Delete trailing whitespace Delete trailing whitespace for codestyle * Update rest_client.py
1 parent c04871a commit 85eea47

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

atlassian/rest_client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ def __init__(
119119
self._session = requests.Session()
120120
else:
121121
self._session = session
122+
123+
if proxies is not None:
124+
self._session.proxies = self.proxies
125+
122126
if backoff_and_retry and int(urllib3.__version__.split(".")[0]) >= 2:
123127
# Note: we only retry on status and not on any of the
124128
# other supported reasons

0 commit comments

Comments
 (0)