mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-03-10 14:34:05 +00:00
Fix the redirect 'str has no render' bug.
This commit is contained in:
parent
3166545509
commit
6979cfa205
@ -11,7 +11,7 @@ from twisted.web import (
|
|||||||
resource,
|
resource,
|
||||||
static,
|
static,
|
||||||
)
|
)
|
||||||
from twisted.web.util import redirectTo
|
from twisted.web.util import redirectTo, Redirect
|
||||||
from twisted.python.filepath import FilePath
|
from twisted.python.filepath import FilePath
|
||||||
from twisted.web.template import (
|
from twisted.web.template import (
|
||||||
Element,
|
Element,
|
||||||
@ -155,7 +155,7 @@ class URIHandler(resource.Resource, object):
|
|||||||
u = u.replace(
|
u = u.replace(
|
||||||
path=(s for s in u.path if s), # remove empty segments
|
path=(s for s in u.path if s), # remove empty segments
|
||||||
)
|
)
|
||||||
return redirectTo(u.to_uri().to_text().encode('utf8'), req)
|
return Redirect(u.to_uri().to_text().encode('utf8'))
|
||||||
try:
|
try:
|
||||||
node = self.client.create_node_from_uri(name)
|
node = self.client.create_node_from_uri(name)
|
||||||
return directory.make_handler_for(node, self.client)
|
return directory.make_handler_for(node, self.client)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user