parse Accept-Language header to Request::accept_languages table

This commit is contained in:
2022-02-02 18:20:32 +01:00
parent 75daf37bbd
commit 33e8df11c5
7 changed files with 49 additions and 9 deletions

View File

@@ -191,6 +191,7 @@ public:
std::wstring env_http_user_agent;
std::wstring env_http_accept_encoding;
std::wstring env_http_accept;
std::wstring env_http_accept_language;
std::wstring env_fcgi_role;
std::wstring env_content_type;
std::wstring env_https;
@@ -332,6 +333,8 @@ public:
// at the beginning those with higher priority
std::vector<HeaderValue> accept_mime_types;
// at the beginning those with higher priority
std::vector<HeaderValue> accept_languages;
// request status
// !! CHANGE ME it'll be better to use ordinary http result codes