mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-30 01:38:55 +00:00
fix name decoding
This commit is contained in:
parent
66f392f7d0
commit
dc4669b5e7
@ -111,9 +111,10 @@ class DirectoryNodeHandler(ReplaceMeMixin, Resource, object):
|
||||
# for these nodes, which is that a URI like
|
||||
# "/uri/URI%3ADIR2%3Aj...vq/" (that is, with a trailing slash
|
||||
# or no further children) renders "this" page
|
||||
name = name.decode('utf8')
|
||||
if not name:
|
||||
return self
|
||||
d = self.node.get(name.decode('utf8'))
|
||||
d = self.node.get(name)
|
||||
d.addBoth(self._got_child, req, name)
|
||||
return d
|
||||
|
||||
@ -121,8 +122,6 @@ class DirectoryNodeHandler(ReplaceMeMixin, Resource, object):
|
||||
"""
|
||||
Callback when self.node.get has returned
|
||||
"""
|
||||
import six
|
||||
name = six.u(name)
|
||||
method = req.method
|
||||
nonterminal = len(req.postpath) > 1
|
||||
t = get_arg(req, "t", "").strip() # XXX looking like MultiFormatResource..
|
||||
|
Loading…
Reference in New Issue
Block a user