Fix bug where routes using templates couldn't redirect
This commit is contained in:
@@ -115,6 +115,9 @@ def mergeTemplate(path):
|
|||||||
|
|
||||||
objects = await func(*args, **kwargs)
|
objects = await func(*args, **kwargs)
|
||||||
|
|
||||||
|
if type(objects) is response.HTTPResponse:
|
||||||
|
return objects
|
||||||
|
|
||||||
objects.update({
|
objects.update({
|
||||||
"strip_unit": strip_unit,
|
"strip_unit": strip_unit,
|
||||||
"escape_html": escape_html,
|
"escape_html": escape_html,
|
||||||
|
|||||||
Reference in New Issue
Block a user