fix(ext/fetch): add accept-language default header to fetch (#14882)

This commit is contained in:
Mark Ladyshau 2022-06-19 23:33:24 +02:00 committed by GitHub
parent 9f1f76f0b0
commit 60869c2598
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 43 additions and 7 deletions

View file

@ -452,6 +452,10 @@
ArrayPrototypePush(request.headerList, ["Accept", "*/*"]);
}
if (!requestObject.headers.has("Accept-Language")) {
ArrayPrototypePush(request.headerList, ["Accept-Language", "*"]);
}
// 12.
opPromise = PromisePrototypeCatch(
PromisePrototypeThen(