mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-19 11:16:24 +00:00
compute 'is this a terminal request' differently
This commit is contained in:
parent
b0c138f7c0
commit
2e9463bd08
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user