Merge branch 'master' of git.kaiyuancloud.cn:yumoqing/ahserver

This commit is contained in:
yumoqing 2025-06-09 13:53:36 +08:00
commit 4cac3f125c

View File

@ -61,7 +61,7 @@ async def stream_response(request, async_data_generator, content_type='text/html
elif isinstance(d, str):
await res.write(d.encode('utf-8'))
else:
d = json.dumps(d, indent=4, ensure_ascii=False)
d = json.dumps(d, ensure_ascii=False)
await res.write(d.encode('utf-8'))
await res.drain()
await res.write_eof()