Skip to content
Snippets Groups Projects
Verified Commit 138b275e authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame :jack_o_lantern:
Browse files

fixup! Bug 42562: Normalized the Accepted Languages on Android.

Bug 42582: Use toLanguageTag() instead of toString()
parent 8c79dbdd
Branches
Tags
1 merge request!1037Bug 42614: Rebased onto 115.12
......@@ -830,7 +830,7 @@ public final class GeckoRuntimeSettings extends RuntimeSettings {
}
}
}
String acceptLanguages = locale != null ? locale.toString().replace('_', '-') : "en-US";
String acceptLanguages = locale != null ? locale.toLanguageTag().replace('_', '-') : "en-US";
if (acceptLanguages.equals("en-US")) {
// For consistency with spoof English.
acceptLanguages += ", en";
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment