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

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

    XMLWordPrintable

Details

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

    Description

      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].

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: