Skip to content

Commit 5e2304b

Browse files
GabefireVal Brodsky
authored andcommitted
Added merge environmental settings to prepared request (#1811)
1 parent 5681b95 commit 5e2304b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

libs/lbox-clients/src/lbox/request_client.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,12 @@ def convert_value(value):
245245

246246
prepped: requests.PreparedRequest = request.prepare()
247247

248-
response = self._connection.send(prepped, timeout=timeout)
248+
settings = self._connection.merge_environment_settings(
249+
prepped.url, {}, None, None, None
250+
)
251+
response = self._connection.send(
252+
prepped, timeout=timeout, **settings
253+
)
249254
logger.debug("Response: %s", response.text)
250255
except requests.exceptions.Timeout as e:
251256
raise exceptions.TimeoutError(str(e))

0 commit comments

Comments
 (0)