Send headers in stream.
This commit is contained in:
@@ -143,7 +143,10 @@ def get_manager(resource, context):
|
|||||||
# to write changes to response
|
# to write changes to response
|
||||||
# (headers, etc)
|
# (headers, etc)
|
||||||
await asyncio.sleep(0)
|
await asyncio.sleep(0)
|
||||||
response = web.StreamResponse(status=200)
|
response = web.StreamResponse(
|
||||||
|
status=200,
|
||||||
|
headers=context["response_headers"],
|
||||||
|
reason="OK")
|
||||||
context["stream"] = response
|
context["stream"] = response
|
||||||
await response.prepare(context["request"])
|
await response.prepare(context["request"])
|
||||||
initialized = True
|
initialized = True
|
||||||
|
|||||||
Reference in New Issue
Block a user