Skip to content

Commit 8cb7332

Browse files
authored
Add proxies to request session
Adds the provided proxies to the request session after creation.
1 parent 9eb04fd commit 8cb7332

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)