Skip to content

fix(Network): handle binary iterable request bodies#736

Open
greyhu wants to merge 1 commit into
Tencent:devfrom
greyhu:fix/network-binary-body-format
Open

fix(Network): handle binary iterable request bodies#736
greyhu wants to merge 1 commit into
Tencent:devfrom
greyhu:fix/network-binary-body-format

Conversation

@greyhu

@greyhu greyhu commented Jun 18, 2026

Copy link
Copy Markdown

这个代码虽然老的版本也存在,但是因为build工具的升级,
老版本是转译为
for (...) {
var item = iterator.value;
var key = item[0];
var value = item[1];
}
新版本是新语法的
for (var [key, value] of body)

遇到Uint8Array(Blob)会报错“ .for is not iterable”

@tencent-adm

tencent-adm commented Jun 18, 2026

Copy link
Copy Markdown
Member

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants