Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure empty body responses never generate an invalid chunked response
aiohttp < 3.9.0 will generate an invalid chunked response if we reached the streaming handler for 204, 304, and a few other cases. Additionally its inefficient to send a StreamResponse when a normal Response will do. When we upgrade to 3.9.0 we should replace this check with the aiohttp must_be_empty_body helper: https://github.com/aio-libs/aiohttp/blob/8ae650bee4add9f131d49b96a0a150311ea58cd1/aiohttp/helpers.py#L1061
- Loading branch information