Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-590

List returned by HttpHeaders.getAcceptableLanguages is not sorted by q-value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.3-RC1
    • 2.2.2.GA
    • None
    • None

      For an Accept-Language header like: Accept-Language: en-US;q=0,en;q=0.8,de-AT,de;q=0.9, HttpHeaders.getAcceptableLanguages() returns the list [en_US, en, de_AT, de].
      The specification of getAcceptableLanguages says that the returned list is "sorted according to their q-value, with highest preference first", so the expected list is [de_AT, de, en, en_US].

              patriot1burke@gmail.com Bill Burke (Inactive)
              clovis.seragiotto Clovis Seragiotto (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: