cibernox / cibernox/precompile-intl-runtime

Accept-language headers can have whitespace between ; and q

Open
#45 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
11
Forks
17
PR merge metrics
No merged PRs in 30d

Description

https://github.com/cibernox/precompile-intl-runtime/blob/83c7d0e8cc68be5276223b089023b8a37e15344c/src/includes/localeGetters.ts#L68

As brought op on [SO here](https://stackoverflow.com/questions/55833095/httpclient-httprequestmessage-adding-white-spaces-to-headers) and related to this [dotnet issue](https://github.com/dotnet/runtime/issues/21131):

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.