Mojira Archive
WEB-1584

minecraft.net ignores Accept-Language q-factor weighting

The bug

minecraft.net ignores q-factor weighting for the Accept-Language header value.

This header specifies the preferred languages in which a website should be served and the q-factors allow specifying in which order the languages are preferred. With Firefox this can be set under the "Language" setting.

For example when choosing English, else German else Danish, the header might look like this:

Accept-Language: en,de;q=0.7,da;q=0.3

However, minecraft.net apparently completely ignores the weights and instead iterates over the languages in an arbitrary (possibly string hash code-based) order, serving Danish first, then German and then English.

How to reproduce

  1. Set a preferred language English (en), then Danish (da)
  2. Open https://minecraft.net
    You are redirected to https://www.minecraft.net/da-dk/ instead of /en-us/

Fixed

Lars Erik Grambo

[Mojang] Web Team

2019-11-17, 03:33 AM

2024-07-13, 11:37 AM

2024-07-13, 11:37 AM

11

9

540144