summaryrefslogtreecommitdiff
path: root/src/mailman/rest/root.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/rest/root.py')
-rw-r--r--src/mailman/rest/root.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mailman/rest/root.py b/src/mailman/rest/root.py
index cd4c8ceef..e4e1433f2 100644
--- a/src/mailman/rest/root.py
+++ b/src/mailman/rest/root.py
@@ -98,8 +98,9 @@ class TopLevel(resource.Resource):
"""
if len(segments) == 0:
return AllDomains()
- elif len(segments) == 1:
- return ADomain(segments[0]), []
+ elif len(segments) >= 1:
+ domain = segments.pop(0)
+ return ADomain(domain), segments
else:
return http.bad_request()