You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #58010 [PsrHttpMessageBridge] Fix conversion of partitioned cookies in the PSR-7 bridge (stof)
This PR was submitted for the 7.2 branch but it was merged into the 6.4 branch instead.
Discussion
----------
[PsrHttpMessageBridge] Fix conversion of partitioned cookies in the PSR-7 bridge
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | n/a
| License | MIT
`symfony/http-foundation` supports partitioned cookies in 6.4+. However, the PSR-7 was failing to convert such partitioned cookies when creating an HttpFoundation Response because it used its own parsing logic for the `Set-Cookie` header instead of reusing the logic exposed by HttpFoundation (since Symfony 3.3), and that logic was outdated. I fixed that by using `Cookie::fromString` for the parsing of the cookie.
Note that the logic in the bridge was also only testing a few cases, while HttpFoundation has a more extensive test coverage for its parsing algorithm. And there is no reason to maintain such parsing twice (with totally different implementations)
Commits
-------
be27495 Fix conversion of partitioned cookies in the PSR-7 bridge
0 commit comments