Skip to content
Snippets Groups Projects
Commit 7c94edce authored by Sander Apweiler's avatar Sander Apweiler
Browse files

Update sanitize function to use https instead of http

parent a68631f8
No related branches found
No related tags found
No related merge requests found
Pipeline #18141 passed
......@@ -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/')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment