From 3dded80d8de169e35deaec3bc2dbeeccda6be252 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 2 Jul 2025 14:29:37 +0800 Subject: [PATCH] bugfix --- ahserver/globalEnv.py | 2 ++ ahserver/processorResource.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ahserver/globalEnv.py b/ahserver/globalEnv.py index e437854..6567ff0 100644 --- a/ahserver/globalEnv.py +++ b/ahserver/globalEnv.py @@ -32,6 +32,7 @@ from appPublic.rc4 import password, unpassword from appPublic.registerfunction import RegisterFunction from appPublic.httpclient import HttpClient from appPublic.log import debug, exception +from appPublic.streamhttpclient import StreamHttpClient from sqlor.dbpools import DBPools,runSQL,runSQLPaging from sqlor.filter import DBFilter, default_filterjson @@ -273,6 +274,7 @@ def initEnv(): g.file_download = file_download g.path_download = path_download g.partial = partial + g.StreamHttpClient = StreamHttpClient def set_builtins(): all_builtins = [ i for i in dir(builtins) if not i.startswith('_')] diff --git a/ahserver/processorResource.py b/ahserver/processorResource.py index 5f31a73..5cfb5f3 100644 --- a/ahserver/processorResource.py +++ b/ahserver/processorResource.py @@ -10,6 +10,7 @@ import json from yarl import URL +import ssl from aiohttp import client from aiohttp_auth import auth from appPublic.http_client import Http_Client @@ -73,7 +74,6 @@ def i18nDICT(request): l = c.langMapping.get(lang,lang) return json.dumps(i18n.getLangDict(l)).encode(c.website.coding) - class ProcessorResource(StaticResource,Url2File): def __init__(self, prefix: str, directory: PathLike, *, name: Optional[str]=None,