bugfix
This commit is contained in:
parent
d8a6788062
commit
e00878fa31
@ -1,7 +1,7 @@
|
||||
|
||||
from appPublic.dictObject import DictObject
|
||||
from appPublic.registerfunction import RegisterFunction
|
||||
|
||||
from aiohttp import web
|
||||
from aiohttp.web_response import Response, StreamResponse
|
||||
from .baseProcessor import BaseProcessor
|
||||
|
||||
@ -23,6 +23,8 @@ class FunctionProcessor(BaseProcessor):
|
||||
x = await f(ns)
|
||||
if isinstance(x,Response):
|
||||
self.retResponse = x
|
||||
elif isinstance(x,web.FileResponse):
|
||||
self.retResponse = x
|
||||
else:
|
||||
self.content = x
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user