Changes between Version 1 and Version 2 of Ticket #34063, comment 5
- Timestamp:
- Oct 20, 2022, 5:12:46 PM (23 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34063, comment 5
v1 v2 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 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-L2515 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 [[https://github.com/django/django/blob/5c2c7277d4554db34c585477b269bb1acfcbbe56/django/core/handlers/wsgi.py#L24-L25 here]]