-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
nicolo-ribaudo
changed the title
Update
Update Oct 10, 2023
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
|
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 <benjamingr@gmail.com> Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
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: