diff --git a/depositor/b2share.py b/depositor/b2share.py index 2a579266b931627e593fe55f43d8b95d9e233456..ef4fcb2d76d86f08ce8de924992812270dd04780 100644 --- a/depositor/b2share.py +++ b/depositor/b2share.py @@ -255,8 +255,8 @@ def sanitize_api_url(url): :type url: string """ - if not url.startswith('http'): - url = 'http://' + url + if not url.startswith('https'): + url = 'https://' + url b2share_url = furl(url) if 'api' not in str(b2share_url.path): b2share_url.path.add('api/')