From 7c94edcef0dc151d1f974d618a7da194e1b63fd0 Mon Sep 17 00:00:00 2001 From: Sander Apweiler <sa.apweiler@fz-juelich.de> Date: Tue, 12 Mar 2019 10:44:31 +0000 Subject: [PATCH] Update sanitize function to use https instead of http --- depositor/b2share.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/depositor/b2share.py b/depositor/b2share.py index 2a57926..ef4fcb2 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/') -- GitLab