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