Uploaded image for project: 'Mojang Web Services'
  1. Mojang Web Services
  2. WEB-1584

minecraft.net ignores Accept-Language q-factor weighting

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • minecraft.net
    • None
    • 540144

      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/

            mojangweb [Mojang] Web Team
            0kvakk Lars Erik Grambo
            Votes:
            11 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: