Skip to content

Accept-language headers can have whitespace between ; and q #45

@myieye

Description

@myieye

const directives = locale.split(';q=');

As brought op on SO here and related to this dotnet issue:

fr; q=1.0 (with a space between ; and q) is a valid accept-language header value. So, getLocaleFromAcceptLanguageHeader() should allow for (at least 1) white-space there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions