parse Accept-Language header to Request::accept_languages table

This commit is contained in:
tomasz.sowa committed 2022-02-02 18:20:32 +01:00
1 parent 75daf37bbd
commit 33e8df11c5
7 files changed
+49 -9

No files matched your search

+3
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