From 2507a2d9a3fdf0b61e186a2ccd63a721bd312321 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 22 Jun 2023 20:25:57 +0800 Subject: [PATCH 1/3] bugfix --- ahserver/processorResource.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ahserver/processorResource.py b/ahserver/processorResource.py index 8eaa1e8..dd738b9 100755 --- a/ahserver/processorResource.py +++ b/ahserver/processorResource.py @@ -112,7 +112,11 @@ class ProcessorResource(AppLogger, StaticResource,Url2File): pass if reader is None: md = await request.post() + if md == {}: + if request.query: + return multiDict2Dict(request.query) ns = multiDict2Dict(md) + print(f'{ns=} reader is None, {request.query=}') return ns ns = {} while 1: @@ -142,8 +146,8 @@ class ProcessorResource(AppLogger, StaticResource,Url2File): print_exc() print('-----------except out ------------') break; - # print(f'getPostData():{ns=}') # showcallstack() + print(f'getPostData():{ns=}') return ns async def _handle(self,request:Request) -> StreamResponse: From a6d8e7253f32b4e6c6a72055f668cff3db4e20e4 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 22 Jun 2023 20:37:38 +0800 Subject: [PATCH 2/3] bugfix --- change.log | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 change.log diff --git a/change.log b/change.log new file mode 100644 index 0000000..9dd51d8 --- /dev/null +++ b/change.log @@ -0,0 +1,3 @@ +# 2023-06-22 +fix bug for getPostData to support post data in request.query + From 229ca623e694bdc20d428991b8751fd3b49bd371 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 22 Jun 2023 20:41:06 +0800 Subject: [PATCH 3/3] bugfix --- change.log | 2 ++ 1 file changed, 2 insertions(+) diff --git a/change.log b/change.log index 9dd51d8..e02ee3c 100644 --- a/change.log +++ b/change.log @@ -1,3 +1,5 @@ +# 2023-06-18 +change permission check to a single function:checkUserPermission for auth_api.py # 2023-06-22 fix bug for getPostData to support post data in request.query