Skip to content
Snippets Groups Projects
Commit cc0bf3a3 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 4639e6ca
No related branches found
No related tags found
1 merge request!1043Bug 42616: Rebased alpha onto Firefox 128.0b1
......@@ -1076,7 +1076,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