Changes between Initial Version and Version 1 of Ticket #34063, comment 5


Ignore:
Timestamp:
Oct 20, 2022, 5:01:10 PM (2 years ago)
Author:
Scott Halgrim

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34063, comment 5

    initial v1  
    1212
    1313So 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
     15By 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
Back to Top