Thanks to visit codestin.com
Credit goes to github.com

Skip to content

204 Response Code not in codes of redirection #59973

Open
@ExtremTechniker

Description

@ExtremTechniker

Symfony version(s) affected

6.4, 7.2

Description

Symfony LiveComponents uses the 204 Response Code together with the Location Header. But the Profiler will not display the request as a redirected.

How to reproduce

  • Create simple livecomponent.
  • In Live Component action return a normal RedirectResponse with any content
  • LiveComponentSubscriber will create 204 Response with Location Header
  • See Current Profiler Token, no redirect will be displayed ontop of current request summary

Possible Solution

When the 204 Response Code is added to https://github.com/symfony/http-foundation/blob/ee1b504b8926198be89d05e5b6fc4c3810c090f0/Response.php#L1249 now the profiler will show the request/response correctly

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