Skip to content

Commit

Permalink
Merge pull request #22 from PADAS/fix-ssl-verify-flag
Browse files Browse the repository at this point in the history
Fix issue in ssl verify flag
  • Loading branch information
marianobrc authored Aug 7, 2024
2 parents 8e37e27 + a0e967f commit b54e173
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gundi_client_v2/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ def __init__(self, **kwargs):

# Retries and timeouts settings
self.max_retries = kwargs.get('max_http_retries', self.DEFAULT_CONNECTION_RETRIES)
transport = AsyncHTTPTransport(retries=self.max_retries)
transport = AsyncHTTPTransport(retries=self.max_retries, verify=self.ssl_verify)
connect_timeout = kwargs.get('connect_timeout', self.DEFAULT_CONNECT_TIMEOUT_SECONDS)
data_timeout = kwargs.get('data_timeout', self.DEFAULT_DATA_TIMEOUT_SECONDS)
timeout = Timeout(data_timeout, connect=connect_timeout, pool=connect_timeout)

# Session
self._session = AsyncClient(transport=transport, timeout=timeout, verify=self.ssl_verify)
self._session = AsyncClient(transport=transport, timeout=timeout)

async def close(self):
await self._session.aclose()
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "gundi-client-v2"
version = "2.3.3"
version = "2.3.4"
description = "An async client for Gundi's API"
authors = [
"Chris Doehring <chrisdo@earthranger.com>",
Expand Down

0 comments on commit b54e173

Please sign in to comment.