Changes between Initial Version and Version 1 of Ticket #34063, comment 5
- Timestamp:
- Oct 20, 2022, 5:01:10 PM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34063, comment 5
initial v1 12 12 13 13 So maybe the question now is, should `FakePayload` handle this in a different way, or `MultiPartParser` and `ChunkIter` not be sending in a number larger than the length of the body? 14 15 By contrast, `TestClient` (i.e., not `AsyncTestClient`) ends up calling `read` on `LimitedStream`, not `FakePayload`, which has this `if` clause in `_read_limited`, which is here https://github.com/django/django/blob/5c2c7277d4554db34c585477b269bb1acfcbbe56/django/core/handlers/wsgi.py#L24-L25