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)
|
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:
|
||||||
|
|
Loading…
Reference in New Issue