From e00878fa31a0a7e3197c02ac5a6f0c9573474fa5 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 9 Dec 2019 19:06:55 +0800 Subject: [PATCH] bugfix --- ahserver/functionProcessor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ahserver/functionProcessor.py b/ahserver/functionProcessor.py index ae8c90c..8218c88 100644 --- a/ahserver/functionProcessor.py +++ b/ahserver/functionProcessor.py @@ -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