Skip to content

Commit 093eaf3

Browse files
committed
Mount default https adapter in property
1 parent fc49942 commit 093eaf3

File tree

1 file changed

+2
-1
lines changed
  • datadog_checks_base/datadog_checks/base/utils

1 file changed

+2
-1
lines changed

datadog_checks_base/datadog_checks/base/utils/http.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,8 +583,9 @@ def _create_session(self):
583583
@property
584584
def session(self):
585585
if self._session is None:
586-
# Create a new session if it doesn't exist
586+
# Create a new session if it doesn't exist and mount default HTTPS adapter.
587587
self._session = self._create_session()
588+
self._mount_https_adapter(self._session, self.tls_config)
588589
return self._session
589590

590591
def handle_auth_token(self, **request):

0 commit comments

Comments
 (0)