Skip to content

Automatic content length in Reponse::send() can break some responses #46449

@catch56

Description

@catch56

Symfony version(s) affected

6.1

Description

Drupal's Big Pipe module does some custom chunking of responses.

After symfony/http-foundation@38a3244 a content length is automatically added to the response, which breaks the page.

We can workaround this by doing an explicit $this->headers->set('Transfer-Encoding', ''); and might be able to come up with something better in the future, however thought it was worth opening an issue just to document the behaviour change, since it's not impossible other projects are doing something weird like us.

How to reproduce

More discussion on the Drupal.org issue https://www.drupal.org/project/drupal/issues/3276186

To reproduce, install Drupal core, update Symfony to 6.1, enable big pipe module.

Possible Solution

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions