diff --git a/slskd_api/client.py b/slskd_api/client.py index d2c3c61..0c2d9a1 100644 --- a/slskd_api/client.py +++ b/slskd_api/client.py @@ -38,12 +38,14 @@ def __init__(self, username: str = None, password: str = None, token: str = None, + verify_ssl: bool = True ): api_url = reduce(urljoin, [f'{host}/', f'{url_base}/', f'api/{API_VERSION}']) session = requests.Session() session.hooks = {'response': lambda r, *args, **kwargs: r.raise_for_status()} session.headers.update({'accept': '*/*'}) + session.verify = verify_ssl header = {}