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


Ignore:
Timestamp:
Oct 20, 2022, 5:12:46 PM (23 months ago)
Author:
Scott Halgrim

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34063, comment 5

    v1 v2  
    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?
    1414
    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
     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 [[https://github.com/django/django/blob/5c2c7277d4554db34c585477b269bb1acfcbbe56/django/core/handlers/wsgi.py#L24-L25 here]]
Back to Top