parse Accept-Language header to Request::accept_languages table
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user