This commit is contained in:
yumoqing 2019-12-09 19:06:55 +08:00
parent d8a6788062
commit e00878fa31

View File

@ -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