Skip to content

Commit

Permalink
Merge pull request #324 from specklesystems/gergo/expose_ssl_verifica…
Browse files Browse the repository at this point in the history
…tion

Update client.py
  • Loading branch information
gjedlicska authored Dec 15, 2023
2 parents 7d99f48 + 7dcd928 commit 6d7e7c5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 7 additions & 1 deletion src/specklepy/api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,16 @@ class SpeckleClient(CoreSpeckleClient):
DEFAULT_HOST = "speckle.xyz"
USE_SSL = True

def __init__(self, host: str = DEFAULT_HOST, use_ssl: bool = USE_SSL) -> None:
def __init__(
self,
host: str = DEFAULT_HOST,
use_ssl: bool = USE_SSL,
verify_certificate: bool = True,
) -> None:
super().__init__(
host=host,
use_ssl=use_ssl,
verify_certificate=verify_certificate,
)
self.account = Account()

Expand Down
3 changes: 1 addition & 2 deletions src/specklepy/core/api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,12 @@ class SpeckleClient:

DEFAULT_HOST = "speckle.xyz"
USE_SSL = True
VERIFY_CERTIFICATE = True

def __init__(
self,
host: str = DEFAULT_HOST,
use_ssl: bool = USE_SSL,
verify_certificate: bool = VERIFY_CERTIFICATE,
verify_certificate: bool = True,
) -> None:
ws_protocol = "ws"
http_protocol = "http"
Expand Down

0 comments on commit 6d7e7c5

Please sign in to comment.