mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 18:38:33 +00:00
fix(ext/fetch): add accept-language
default header to fetch (#14882)
This commit is contained in:
parent
9f1f76f0b0
commit
60869c2598
3 changed files with 43 additions and 7 deletions
|
@ -452,6 +452,10 @@
|
|||
ArrayPrototypePush(request.headerList, ["Accept", "*/*"]);
|
||||
}
|
||||
|
||||
if (!requestObject.headers.has("Accept-Language")) {
|
||||
ArrayPrototypePush(request.headerList, ["Accept-Language", "*"]);
|
||||
}
|
||||
|
||||
// 12.
|
||||
opPromise = PromisePrototypeCatch(
|
||||
PromisePrototypeThen(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue