Skip to content

Response.headers in fetch parsed not correctly #10

@yanni4night

Description

@yanni4night

When parse headers like this:

const res = await fetch(...);
for (let header of res.headers) {

}

You find all headers can barely parsed correctly.

This is caused by low-version whatwg-fetch, you have to upgrade it to v2. Or else, use another fetch library.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions