mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-01 07:52:50 +00:00
LibWeb: Make preferred languages configurable
This also changes fetch to use the preferred languages for the Accept-Language header.
This commit is contained in:
parent
2cfc1873c0
commit
2ca8fd1832
Notes:
github-actions[bot]
2024-07-25 10:39:58 +00:00
Author: https://github.com/jamierocks
Commit: 2ca8fd1832
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/796
Reviewed-by: https://github.com/tcl3 ✅
9 changed files with 31 additions and 8 deletions
|
@ -59,6 +59,7 @@ ResourceLoader::ResourceLoader(NonnullRefPtr<ResourceLoaderConnector> connector)
|
|||
: m_connector(move(connector))
|
||||
, m_user_agent(MUST(String::from_utf8(default_user_agent)))
|
||||
, m_platform(MUST(String::from_utf8(default_platform)))
|
||||
, m_preferred_languages({ "en-US"_string })
|
||||
, m_navigator_compatibility_mode(default_navigator_compatibility_mode)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue