Allow https in filestore url

This commit is contained in:
Mikhail Novosyolov 2020-01-22 20:10:13 +03:00
parent 32a5749d14
commit ea9a02c9ae

View file

@ -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:]