Skip to content

Commit cae810b

Browse files
authored
CM-38532, CM-38510 - Use CA system storage only on Windows (#242)
1 parent e260141 commit cae810b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cycode/cyclient/cycode_client_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ def cert_verify(self, *args, **kwargs) -> None:
2626

2727

2828
def _get_request_function() -> Callable:
29-
if platform.system() == 'Darwin':
29+
if os.environ.get('REQUESTS_CA_BUNDLE') or os.environ.get('CURL_CA_BUNDLE'):
3030
return requests.request
3131

32-
if os.environ.get('REQUESTS_CA_BUNDLE') or os.environ.get('CURL_CA_BUNDLE'):
32+
if platform.system() != 'Windows':
3333
return requests.request
3434

3535
session = requests.Session()

0 commit comments

Comments
 (0)