This commit is contained in:
yumoqing 2024-12-25 11:10:18 +08:00
parent edce9df81b
commit 35fb8be660

View File

@ -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