Handle path "/" when rendering root path

This commit is contained in:
Sajith Sasidharan 2020-04-27 16:42:26 -04:00
parent f34cdb81ad
commit 110528f569
1 changed files with 3 additions and 1 deletions

View File

@ -257,7 +257,9 @@ class Root(MultiFormatResource):
except KeyError:
storage_server = None
return storage.StorageStatus(storage_server, self.client.nickname)
if not path:
# Render "/" path.
return self
# FIXME: This code is duplicated in root.py and introweb.py.
def data_rendered_at(self, ctx, data):