Merge branch 'master' of git.kaiyuancloud.cn:yumoqing/ahserver
This commit is contained in:
commit
4cac3f125c
@ -61,7 +61,7 @@ async def stream_response(request, async_data_generator, content_type='text/html
|
|||||||
elif isinstance(d, str):
|
elif isinstance(d, str):
|
||||||
await res.write(d.encode('utf-8'))
|
await res.write(d.encode('utf-8'))
|
||||||
else:
|
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.write(d.encode('utf-8'))
|
||||||
await res.drain()
|
await res.drain()
|
||||||
await res.write_eof()
|
await res.write_eof()
|
||||||
|
Loading…
Reference in New Issue
Block a user