Skip to content

Content-Type no replaced on  #50757

Closed
Closed
@111ypuk

Description

@111ypuk

Symfony version(s) affected

6.3

Description

in http-foundation add support for the 103 status code and now replace Content-Type in header not working

How to reproduce

see https://github.com/symfony/http-foundation/blob/6.3/Response.php#L365

Possible Solution

move $replace = 0 === strcasecmp($name, 'Content-Type');
before if (103 === $statusCode) {

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