Fix webapp path parsing
Change-Id: I34c7b74ac276b10c516563ec85e5f8839d6b392c
This commit is contained in:
parent
ac37ff55f8
commit
f0a12e7a21
|
@ -133,8 +133,8 @@ class WebApp(threading.Thread):
|
|||
return handler(path, '', request)
|
||||
|
||||
# Now try with a tenant_name stripped
|
||||
tenant_name = request.path.split('/')[1]
|
||||
path = request.path.replace('/' + tenant_name, '')
|
||||
x, tenant_name, path = request.path.split('/', 2)
|
||||
path = '/' + path
|
||||
# Handle keys
|
||||
if path.startswith('/keys'):
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue