-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Use java.util.Locale to parse the languages from the Accept-Language header #36228
Conversation
nderwin
commented
Oct 1, 2023
•
edited by geoand
Loading
edited by geoand
- Fixes: Accept-Language header not parsed correctly for language subtags, variants, extension and private subtags #36227.
This comment was marked as resolved.
This comment was marked as resolved.
Thanks for this! Would you like to add some new tests that verify the behavior? |
@geoand Sure, where would they go, in the |
I would add one here |
I have launched CI, let's see what it says |
🤞 |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, thanks.
I will let @geoand approve and merge when he's back from Devoxx.
Thanks. I want to have a closer looks because either the Javadoc of the method is outdated, or something more subtle is going on. |
@geoand Also keep an eye on resteasy/resteasy#3808 - I made the same change for the non-reactive RESTEasy, and it tripped on the Jakarta REST TCK. If it's rejected there, then we should probably reject this too, for consistency. |
Thanks for the heads up @nderwin. Let's convert this into a draft as well. |
My PR for RESTEasy was replaced with these two that were merged: |
Thanks for the follow-up. How did the TCK issue get fixed? |
I'm not sure. I wasn't really clear on what the TCK issue was, unfortunately. |
…header * added some tests with various language tag scenarios * Fixes quarkusio#36227 Signed-off-by:Nathan Erwin <nathan.d.erwin@gmail.com>
I think it's been long enough that we can turn this back into a real PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Status for workflow
|
As this is doing the same as RESTEasy is now doing, it makes perfect sense to merge it. Thanks a lot for the contribution! |