fix js fetch headers (##589)

This commit is contained in:
wanghongenpin
2025-09-12 00:36:22 +08:00
parent 22eb6a70eb
commit 07ffeb8e0f
5 changed files with 42 additions and 9 deletions

View File

@@ -27,10 +27,11 @@ function fetch(url, options) {
blob: () => Promise.resolve(request.response.body),
clone: response,
headers: {
...headers,
keys: () => keys,
entries: () => all,
get: n => headers[n.toLowerCase()],
has: n => n.toLowerCase() in headers
has: n => n.toLowerCase() in headers,
}
});