From 35fb8be660af922806fb0c93968f9320021f8b56 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 25 Dec 2024 11:10:18 +0800 Subject: [PATCH] bugfix --- ahserver/globalEnv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ahserver/globalEnv.py b/ahserver/globalEnv.py index e4c763a..061b12f 100644 --- a/ahserver/globalEnv.py +++ b/ahserver/globalEnv.py @@ -61,7 +61,7 @@ async def stream_response(request, async_data_generator, content_type='text/html else: d = json.dumps(d) await res.write(d.encode('utf-8')) - await res.drain() + await res.drain() await res.write_eof() return res