Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions deepomatic/api/http_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def __init__(self, app_id=None, api_key=None, verify_ssl=None,
if host is None:
host = os.getenv('DEEPOMATIC_API_URL', API_HOST)
if verify_ssl is None:
verify = os.getenv('DEEPOMATIC_API_VERIFY_TLS', '1') == '1'
verify_ssl = os.getenv('DEEPOMATIC_API_VERIFY_TLS', '1') == '1'
if app_id is None:
app_id = os.getenv('DEEPOMATIC_APP_ID')
if api_key is None:
Expand Down Expand Up @@ -114,7 +114,7 @@ def __init__(self, app_id=None, api_key=None, verify_ssl=None,

self.api_key = str(api_key)
self.app_id = str(app_id) if app_id else None
self.verify = verify
self.verify_ssl = verify_ssl
self.host = host
self.resource_prefix = host + version

Expand Down Expand Up @@ -200,7 +200,7 @@ def send_request(self, requests_callable, *args, **kwargs):
http_retry = kwargs.pop('http_retry', self.http_retry)

functor = functools.partial(requests_callable, *args,
verify=self.verify,
verify=self.verify_ssl,
timeout=requests_timeout, **kwargs)

if http_retry is not None:
Expand Down