Re: Accept_Language issue
Posted: Fri Feb 02, 2018 8:02 am
Hi,
CEF4Delphi doesn't modify GlobalCEFApp.AcceptLanguageList to send the HTTP_ACCEPT_LANGUAGE header.
It only passes the unmodified GlobalCEFApp.AcceptLanguageList value to the cef_initialize function inside the TCefSettings record.
The code comments about that field are these :
Try to set GlobalCEFApp.AcceptLanguageList with the language codes separated by commas but without the quality values (q=). It seems that the quality values are added automatically by Blink.
CEF4Delphi doesn't modify GlobalCEFApp.AcceptLanguageList to send the HTTP_ACCEPT_LANGUAGE header.
It only passes the unmodified GlobalCEFApp.AcceptLanguageList value to the cef_initialize function inside the TCefSettings record.
The code comments about that field are these :
Code: Select all
///
// Comma delimited ordered list of language codes without any whitespace that
// will be used in the "Accept-Language" HTTP header. May be overridden on a
// per-browser basis using the CefBrowserSettings.accept_language_list value.
// If both values are empty then "en-US,en" will be used. Can be overridden
// for individual CefRequestContext instances via the
// CefRequestContextSettings.accept_language_list value.
///