bugfix
This commit is contained in:
parent
b5c2320c35
commit
1b30779572
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user