Reject non-existent child nodes of /status

Requests on both `/status` and `/status/` will be served with the same
status page, but `/status//`, `/status///` and so on will be processed
further down, resulting in a 40x response.
This commit is contained in:
Sajith Sasidharan 2020-07-17 09:46:21 -04:00
parent fe165cc99d
commit 372cc00a25

View File

@ -1214,7 +1214,7 @@ class Status(MultiFormatResource):
# final URL segment will be an empty string. Resources can
# thus know if they were requested with or without a final
# slash."
if not path:
if not path and request.postpath != ['']:
return self
h = self.history