mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-19 19:26:25 +00:00
More unicode-of-bytes issues.
This commit is contained in:
parent
db7a53f85f
commit
b935318d5d
@ -130,7 +130,7 @@ class PlaceHolderNodeHandler(Resource, ReplaceMeMixin):
|
|||||||
if t == b"uri":
|
if t == b"uri":
|
||||||
return self.replace_me_with_a_childcap(req, self.client, replace)
|
return self.replace_me_with_a_childcap(req, self.client, replace)
|
||||||
|
|
||||||
raise WebError("PUT to a file: bad t=%s" % t)
|
raise WebError("PUT to a file: bad t=%s" % unicode(t, "utf-8"))
|
||||||
|
|
||||||
@render_exception
|
@render_exception
|
||||||
def render_POST(self, req):
|
def render_POST(self, req):
|
||||||
@ -147,7 +147,7 @@ class PlaceHolderNodeHandler(Resource, ReplaceMeMixin):
|
|||||||
# t=mkdir is handled in DirectoryNodeHandler._POST_mkdir, so
|
# t=mkdir is handled in DirectoryNodeHandler._POST_mkdir, so
|
||||||
# there are no other t= values left to be handled by the
|
# there are no other t= values left to be handled by the
|
||||||
# placeholder.
|
# placeholder.
|
||||||
raise WebError("POST to a file: bad t=%s" % t)
|
raise WebError("POST to a file: bad t=%s" % unicode(t, "utf-8"))
|
||||||
|
|
||||||
return handle_when_done(req, d)
|
return handle_when_done(req, d)
|
||||||
|
|
||||||
@ -287,7 +287,7 @@ class FileNodeHandler(Resource, ReplaceMeMixin, object):
|
|||||||
assert self.parentnode and self.name
|
assert self.parentnode and self.name
|
||||||
return self.replace_me_with_a_childcap(req, self.client, replace)
|
return self.replace_me_with_a_childcap(req, self.client, replace)
|
||||||
|
|
||||||
raise WebError("PUT to a file: bad t=%s" % t)
|
raise WebError("PUT to a file: bad t=%s" % unicode(t, "utf-8"))
|
||||||
|
|
||||||
@render_exception
|
@render_exception
|
||||||
def render_POST(self, req):
|
def render_POST(self, req):
|
||||||
|
Loading…
Reference in New Issue
Block a user