Issue Bug Resolved

#110765ContentLengthResponseHeader does not handle unknown body size

David Blatter 09/23/26, 07:52 updated 09/23/26, 16:45

Description

I run into this issue when returning a response using the PropagateResponseException. I can work around it by way of ImmedateReponseException.

However, the PSR explicitly allowes unkown body sizes by returning null from getSize(). ContentLengthResponseHeader should not add the header, when getSize() returns null.

Reviews 3

History 26

  1. Gerrit Code Review pushed patch set 1 for main to change 95995 status New Under Review 09/23/26, 15:33

  2. Gerrit Code Review pushed patch set 1 for main to change 95996 09/23/26, 15:33

  3. Gerrit Code Review pushed patch set 1 for 14.3 to change 96001 09/23/26, 15:49

  4. Georg Ringer commented and changed status Under Review Resolved done 0 % 100 % 09/23/26, 15:55

    Applied in changeset commit:38132f19dab2edff1a137451ba731f1cb62ef494.

  5. Gerrit Code Review pushed patch set 2 for 14.3 to change 96001 status Resolved Under Review 09/23/26, 16:28

  6. Georg Ringer commented and changed status Under Review Resolved 09/23/26, 16:45

    Applied in changeset commit:39c0581d3c8d358d7af31a315d565eea492acad8.