Skip to content

Commit

Permalink
Merge pull request #74 from ServiceNow/scratch/validate-bundle
Browse files Browse the repository at this point in the history
#72 honor environment overrides
  • Loading branch information
vetsin authored Apr 27, 2023
2 parents f10dfd3 + 368fa6a commit fff7364
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pysnc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ def _send(self, req, stream=False) -> requests.Response:
raise e

request = self.session.prepare_request(req)
r = self.session.send(request, stream=stream)
# Merge environment settings into session
settings = self.session.merge_environment_settings(request.url, {}, stream, None, None)
r = self.session.send(request, **settings)
self._validate_response(r)
return r

Expand Down

0 comments on commit fff7364

Please sign in to comment.