Review 14.3 Merged

96001[BUGFIX] Skip Content-Length for unknown body size

Benni Mack CR +2 V +2 Normal +90 −3 updated 09/23/26, 16:42

Commit message

PSR-7 explicitly allows a response body of unknown size:
StreamInterface::getSize() then returns NULL. The frontend
middleware casted that NULL to a string and thus sent an
empty Content-Length header, which breaks such responses,
for instance when they are handed over through a
PropagateResponseException.

The header is now omitted whenever the body size is unknown.

Review

  • Code review CR +2 Done
    • Benni Mack +2
  • Verified V +2 Done
    • Benni Mack +2
    • core-ci +1 CI

Issues 1

Files 2

Review log 46

  1. Benni Mack commented on patch set 1 09/23/26, 15:49

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V -1 09/23/26, 16:20 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/109081

  3. Wouter Wolters uploaded patch set 2 V -1 09/23/26, 16:28

  4. core-ci voted on patch set 2 V +1 09/23/26, 16:41 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/109090

  5. Benni Mack voted on patch set 2 CR +2 V +2 09/23/26, 16:42

  6. Benni Mack merged patch set 3 09/23/26, 16:42