You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug 2000765 - Updated q-value generation in Accept-Language Header to match chrome.r=valentin,necko-reviewers,devtools-reviewers,android-reviewers,nchevobbe,nalexander
The algorithm now generates q-value 0.9 for second language in two language option. Now q-weight of each language decrements by 0.1 (minimum 0.1) down the language list.
Differential Revision: https://phabricator.services.mozilla.com/D273761
Copy file name to clipboardExpand all lines: mobile/android/android-components/components/browser/engine-gecko/src/test/java/mozilla/components/browser/engine/gecko/fetch/GeckoViewFetchUnitTestCases.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -117,7 +117,7 @@ class GeckoViewFetchUnitTestCases : FetchTestCases() {
117
117
val requestHeaders =mapOf(
118
118
"Accept" to "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
119
119
"Accept-Encoding" to "gzip, deflate",
120
-
"Accept-Language" to "en-US,en;q=0.5",
120
+
"Accept-Language" to "en-US,en;q=0.9",
121
121
"Connection" to "keep-alive",
122
122
"User-Agent" to "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:65.0) Gecko/20100101 Firefox/65.0",
Copy file name to clipboardExpand all lines: mobile/android/android-components/components/concept/fetch/src/test/java/mozilla/components/concept/fetch/HeadersTest.kt
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ class HeadersTest {
18
18
val headers =MutableHeaders(
19
19
"Accept" to "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
20
20
"Accept-Encoding" to "gzip, deflate",
21
-
"Accept-Language" to "en-US,en;q=0.5",
21
+
"Accept-Language" to "en-US,en;q=0.9",
22
22
"Connection" to "keep-alive",
23
23
"Dnt" to "1",
24
24
"User-Agent" to "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:65.0) Gecko/20100101 Firefox/65.0",
Copy file name to clipboardExpand all lines: mobile/android/android-components/components/concept/fetch/src/test/java/mozilla/components/concept/fetch/RequestTest.kt
Copy file name to clipboardExpand all lines: mobile/android/android-components/components/tooling/fetch-tests/src/main/java/mozilla/components/tooling/fetch/tests/FetchTestCases.kt
0 commit comments