Skip to content

Warning #15

Description

@jafuentest

I'm getting HTTP::Accept::ParseError when trying to parse request.env['HTTP_ACCEPT_LANGUAGE']

These are the values of the HTTP_ACCEPT_LANGUAGE header that produce the error and the user agents they come from according to the nginx log. There may be more versions of chrome that send these headers, these two are just the first ones I found for each case. I'm not sure if this is actually a bug in the Languages.parse, I wanted to get more opinions before attempting to submit a PR or patching my own code

en_US
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36

en,en_US;q=0.9
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions