bugfix
This commit is contained in:
parent
d063063364
commit
08e40a7692
@ -50,6 +50,7 @@ def basic_auth_headers(user, passwd):
|
|||||||
|
|
||||||
async def stream_response(request, async_data_generator, content_type='text/html'):
|
async def stream_response(request, async_data_generator, content_type='text/html'):
|
||||||
res = StreamResponse()
|
res = StreamResponse()
|
||||||
|
if content_type:
|
||||||
res.content_type = content_type
|
res.content_type = content_type
|
||||||
res.set_status(200)
|
res.set_status(200)
|
||||||
await res.prepare(request)
|
await res.prepare(request)
|
||||||
|
Loading…
Reference in New Issue
Block a user