Verified Commit 66370dbe authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃
Browse files

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

Bug 42582: Use toLanguageTag() instead of toString()
parent 51caba94
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -850,7 +850,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";