Skip to content

Update Accept header for JSON modules with network imports #50116

@nicolo-ribaudo

Description

@nicolo-ribaudo

The HTML spec is being updated to use the appropriate fetch destination for JSON modules: whatwg/html#9486, whatwg/fetch#1691

As far as I can tell, the only relevant different for Node.js is that now JSON modules are fetched with the Accept: application/json,*/*;q=0.5 HTTP header rather than Accept: */*. My knowledge of Node.js' HTTP imports implementation is limited, so please somebody else confirm this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions