From c04c324d0fb001a90420dc0e491975669124af06 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 18 Apr 2023 10:50:55 +0800 Subject: [PATCH] bugfix --- ahserver/processorResource.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ahserver/processorResource.py b/ahserver/processorResource.py index 8cd895f..16a05b4 100644 --- a/ahserver/processorResource.py +++ b/ahserver/processorResource.py @@ -106,7 +106,11 @@ class ProcessorResource(AppLogger, StaticResource,Url2File): return fname async def getPostData(self,request: Request) -> dict: - reader = await request.multipart() + reader = None + try: + reader = await request.multipart() + except: + pass if reader is None: md = await request.post() ns = multiDict2Dict(md)