compute 'is this a terminal request' differently

This commit is contained in:
meejah 2020-02-25 14:13:48 -07:00
parent b0c138f7c0
commit 2e9463bd08

View File

@ -126,7 +126,8 @@ class DirectoryNodeHandler(ReplaceMeMixin, Resource, object):
the rest of the work of the Twisted API getChild(): returning the rest of the work of the Twisted API getChild(): returning
a suitable child resource to Twisted Web. a suitable child resource to Twisted Web.
""" """
nonterminal = len(req.postpath) > 1 terminal = (req.prepath + req.postpath)[-1].decode('utf8') == name
nonterminal = not terminal #len(req.postpath) > 0
t = get_arg(req, "t", "").strip() t = get_arg(req, "t", "").strip()
if isinstance(node_or_failure, Failure): if isinstance(node_or_failure, Failure):