[SOUP] Make Accept-Languages header look more like other browsers
authormcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 15 Nov 2018 19:43:59 +0000 (19:43 +0000)
committermcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 15 Nov 2018 19:43:59 +0000 (19:43 +0000)
commitaa1df16f9916ba6864e9e20479ff3568936ea669
tree8c21b0868eec6fdc997448b77bfd7769af314e5f
parent9d4765bf95e2a62ef24d01e41b2b96af6c163631
[SOUP] Make Accept-Languages header look more like other browsers
https://bugs.webkit.org/show_bug.cgi?id=191614

Reviewed by Carlos Garcia Campos.

This changes our Accept-Language header to better match other browsers, from something
like this:

Accept-Language: en-us, en;q=0.90, es-es;q=0.80, es;q=0.70

to something like this:

Accept-Language: en-US,en;q=0.90,es-ES;q=0.80,es;q=0.70

There's no particular motivation for this change. I just noticed we were different for no
clear reason.

* NetworkProcess/soup/NetworkProcessSoup.cpp:
(WebKit::buildAcceptLanguages):
* UIProcess/API/glib/WebKitWebContext.cpp:
(webkit_web_context_set_preferred_languages):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@238236 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/ChangeLog
Source/WebKit/NetworkProcess/soup/NetworkProcessSoup.cpp
Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp