这个原始 ASGI 应用应回显完整请求体。找出两个协议错误。
Python
async def application(scope, receive, send):
message = await receive()
body = message.get("body", b"")
await send({
"type": "http.response.start",
"status": 200,
"headers": {"content-type": "text/plain"},
})
await send({
"type": "http.response.body",
"body": body,
})