Skip to content

Blob should have response content type #925

@ronag

Description

@ronag

Body mixin in undici.request and undici.fetch when returning a Blob should also set Blob.type to the corresponding content-type header from the response.

Search for new Body and you should pass in a type in new Blob(chunks, { type: headers['content-type'] }).

Don't forget tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions