Skip to content

Commit

Permalink
fix: respect common env variables
Browse files Browse the repository at this point in the history
Signed-off-by: Fernando Rijo Cedeno <[email protected]>
  • Loading branch information
zFernand0 committed Nov 18, 2024
1 parent c4e23ef commit db4cba3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/core/zowe/core_for_zowe_sdk/request_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,7 @@ def __send_request(self, stream: bool = False):
stream : bool
Flag indicates whether it is a streaming requests.
"""
session = self.session
request_object = requests.Request(method=self.__method, **self.__request_arguments)
prepared = session.prepare_request(request_object)
self.__response = session.send(prepared, stream=stream, **self.session_arguments)
self.__response = self.session.request(method=self.__method, stream=stream, **self.session_arguments, **self.__request_arguments)

def __del__(self):
"""Clean up the REST session object once it is no longer needed anymore."""
Expand Down

0 comments on commit db4cba3

Please sign in to comment.