Handle path "/" when rendering root path
This commit is contained in:
parent
f34cdb81ad
commit
110528f569
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue