Closed RobertoPrevato closed 1 year ago
Describe the bug When a response content is chunked and the last chunk is not empty, currently blacksheep does not send a final message such as:
await send({ 'type': 'http.response.body', 'body': b"", 'more_body': False })
Which results in uvicorn complaining, even when the response is transmitted properly to the client, with message:
uvicorn
ERROR: ASGI callable returned without completing response.
To fix, ensure that a final message with "body": b"" is transmitted to the ASGI server.
"body": b""
Describe the bug When a response content is chunked and the last chunk is not empty, currently blacksheep does not send a final message such as:
Which results in
uvicorn
complaining, even when the response is transmitted properly to the client, with message:To fix, ensure that a final message with
"body": b""
is transmitted to the ASGI server.