From ea9a02c9ae80f7ff1f98744a7b19ed979f0dd92c Mon Sep 17 00:00:00 2001 From: Mikhail Novosyolov Date: Wed, 22 Jan 2020 20:10:13 +0300 Subject: [PATCH] Allow https in filestore url --- abf/api/jsn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/abf/api/jsn.py b/abf/api/jsn.py index 9703bf7..e0cf8aa 100644 --- a/abf/api/jsn.py +++ b/abf/api/jsn.py @@ -51,8 +51,8 @@ class AbfJson(object): self.abf_url = re.compile('/+$').sub('', abf_url) self.file_store_url = re.compile('/+$').sub('', file_store_url) - if not self.file_store_url.startswith('http://'): - log.error(_('File-store URL has to start with "http://"')) + if not (self.file_store_url.startswith('http://') or self.file_store_url.startswith('https://')): + log.error(_('File-store URL has to start with "http(s)://"')) exit(1) self.file_store_domain = self.file_store_url[7:]