Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[HttpKernel] Fix default locale is ignored whenset_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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
set_locale_from_accept_language is usedset_locale_from_accept_language is usedsmnandre commentedDec 23, 2023
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) |
chalasr commentedDec 23, 2023
Indeed. Nice catch@smnandre |
set_locale_from_accept_language is usedset_locale_from_accept_language is usedset_locale_from_accept_language is usedset_locale_from_accept_language is used6123971 to671befaComparejkobus commentedDec 27, 2023
Thanks, I added a test case for that@smnandre |
fabpot commentedDec 28, 2023
Isn't something we need to merge in 5.4? |
chalasr commentedDec 29, 2023
@fabpot yes, good catch. |
…set_locale_from_accept_language is used
671befa toc626b3aComparenicolas-grekas commentedDec 29, 2023
Thank you@jkobus. |
jkobus commentedDec 29, 2023
Thanks, happy new year for you all 🎊 |
Uh oh!
There was an error while loading.Please reload this page.
Fix as discussed in#53086