-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpKernel] Fix default locale is ignored when set_locale_from_accept_language
is used
#53195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HttpKernel] Fix default locale is ignored when set_locale_from_accept_language
is used
#53195
Conversation
set_locale_from_accept_language
is usedset_locale_from_accept_language
is used
I'm having just a doubt about the second line of the "if"
It is later used by the ResponseListener to send a Vary header.. so i guess we want to send this header regardless of whether the client send its preferences or not (or that coud generate big cache problems) (sorry, did not think about that when I wrote the example) |
Indeed. Nice catch @smnandre |
set_locale_from_accept_language
is usedset_locale_from_accept_language
is used
set_locale_from_accept_language
is usedset_locale_from_accept_language
is used
6123971
to
671befa
Compare
Thanks, I added a test case for that @smnandre |
Isn't something we need to merge in 5.4? |
@fabpot yes, good catch. |
…set_locale_from_accept_language is used
671befa
to
c626b3a
Compare
Thank you @jkobus. |
Thanks, happy new year for you all 🎊 |
Fix as discussed in #53086