mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
net: Use the user locale for the Accept-Language header and navigator language (#41919)
That respects the user locale better than hardcoding en-US. This can also be manually set with the `LANG` environment variable. Testing: Manual testing with the devtools to check the header sent and the value of `navigator.language` Signed-off-by: webbeef <me@webbeef.org>
This commit is contained in:
2
.github/workflows/linux.yml
vendored
2
.github/workflows/linux.yml
vendored
@@ -176,6 +176,7 @@ jobs:
|
||||
if: ${{ inputs.unit-tests }}
|
||||
env:
|
||||
NEXTEST_RETRIES: 2 # https://github.com/servo/servo/issues/30683
|
||||
LANG: en-US
|
||||
run: ./mach test-unit --profile ${{ inputs.profile }} --nextest-profile ci
|
||||
# We upload the test-results to Codecov to help us identify flaky unit-tests.
|
||||
- name: Upload test results to Codecov
|
||||
@@ -356,6 +357,7 @@ jobs:
|
||||
shell: bash
|
||||
env:
|
||||
NEXTEST_RETRIES: 2 # https://github.com/servo/servo/issues/30683
|
||||
LANG: en-US
|
||||
run: |
|
||||
./mach test-unit --code-coverage \
|
||||
--profile=${{ steps.options.outputs.cargo_profile }} \
|
||||
|
||||
Reference in New Issue
Block a user