fixed url path

This commit is contained in:
Waldek 2021-01-20 13:04:46 +01:00 committed by GitHub
parent e3441cb703
commit f18fe7e35e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -853,7 +853,7 @@ class web_server(Resource):
def render_GET(self, request):
global BRIDGES_INC, URL_PATH
logging.info('static website requested: %s', request)
if WEB_AUTH and (request.uri == b'/masters' or request.uri == b'/peers' or request.uri == b'/opb' or request.uri == b'/moni' or request.uri == b'/bridge' or request.uri == b'/sinfo'):
if WEB_AUTH and (request.uri == b'/masters' or request.uri == b'/peers' or request.uri == b'/opb' or request.uri == b'/moni' or request.uri == b'/bridges' or request.uri == b'/sinfo'):
user = WEB_USER.encode('utf-8')
password = WEB_PASS.encode('utf-8')
auth = request.getHeader('Authorization')