Send headers in stream.

This commit is contained in:
Roberto Abdelkader Martínez Pérez
2019-04-01 12:46:59 +02:00
parent baad7e9076
commit 3e9e7a42da
+4 -1
View File
@@ -143,7 +143,10 @@ def get_manager(resource, context):
# to write changes to response
# (headers, etc)
await asyncio.sleep(0)
response = web.StreamResponse(status=200)
response = web.StreamResponse(
status=200,
headers=context["response_headers"],
reason="OK")
context["stream"] = response
await response.prepare(context["request"])
initialized = True