You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Update Accept header for JSON modules with network imports #50116
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.
changed the title [-]Update `Accept` header for JSON modules with http imports[/-][+]Update `Accept` header for JSON modules with network imports[/+]on Oct 10, 2023
Activity
[-]Update `Accept` header for JSON modules with http imports[/-][+]Update `Accept` header for JSON modules with network imports[/+]marco-ippolito commentedon Oct 10, 2023
I think it should not have any impact other than
node/lib/internal/modules/esm/fetch_module.js
Line 149 in 78a1570
module: add application/json in accept header when fetching json module
module: add application/json in accept header when fetching json module
module: add application/json in accept header when fetching json module
module: add application/json in accept header when fetching json module