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