always set BUI_PREFIX option

This commit is contained in:
ziirish 2019-05-09 14:44:05 +02:00
parent ebf12aa4b5
commit 2db8e8015d
No known key found for this signature in database
GPG key ID: 72DB229A64B54E46

View file

@ -302,9 +302,8 @@ class BUIServer(Flask):
if prefix and not prefix.startswith('/'): if prefix and not prefix.startswith('/'):
if prefix.lower() != 'none': if prefix.lower() != 'none':
self.logger.warning("'prefix' must start with a '/'!") self.logger.warning("'prefix' must start with a '/'!")
self.config['BUI_PREFIX'] = '' prefix = ''
elif prefix: self.config['BUI_PREFIX'] = prefix
self.config['BUI_PREFIX'] = prefix
# WebSocket options # WebSocket options
self.ws_enabled = self.config['WS_ENABLED'] = self.conf.safe_get( self.ws_enabled = self.config['WS_ENABLED'] = self.conf.safe_get(