-
Notifications
You must be signed in to change notification settings - Fork 31.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Accept
header for JSON modules with network imports
#50116
Comments
7 tasks
Accept
header for JSON modules with http importsAccept
header for JSON modules with network imports
4 tasks
I think it should not have any impact other than node/lib/internal/modules/esm/fetch_module.js Line 149 in 78a1570
|
nodejs-github-bot
pushed a commit
that referenced
this issue
Oct 30, 2023
PR-URL: #50119 Refs: #50116 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
alexfernandez
pushed a commit
to alexfernandez/node
that referenced
this issue
Nov 1, 2023
PR-URL: nodejs#50119 Refs: nodejs#50116 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
targos
pushed a commit
that referenced
this issue
Nov 11, 2023
PR-URL: #50119 Refs: #50116 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
targos
pushed a commit
that referenced
this issue
Nov 14, 2023
PR-URL: #50119 Refs: #50116 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
UlisesGascon
pushed a commit
that referenced
this issue
Dec 11, 2023
PR-URL: #50119 Refs: #50116 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 thanAccept: */*
. My knowledge of Node.js' HTTP imports implementation is limited, so please somebody else confirm this.The text was updated successfully, but these errors were encountered: