Fix webapp path parsing

Change-Id: I34c7b74ac276b10c516563ec85e5f8839d6b392c
This commit is contained in:
James E. Blair 2017-08-01 16:36:43 -07:00
parent ac37ff55f8
commit f0a12e7a21
1 changed files with 2 additions and 2 deletions

View File

@ -133,8 +133,8 @@ class WebApp(threading.Thread):
return handler(path, '', request) return handler(path, '', request)
# Now try with a tenant_name stripped # Now try with a tenant_name stripped
tenant_name = request.path.split('/')[1] x, tenant_name, path = request.path.split('/', 2)
path = request.path.replace('/' + tenant_name, '') path = '/' + path
# Handle keys # Handle keys
if path.startswith('/keys'): if path.startswith('/keys'):
try: try: