-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
Treat 307
and 308
as redirects in HTTPS imports
#43679
Labels
feature request
Issues that request new features to be added to Node.js.
loaders
Issues and PRs related to ES module loaders
Comments
kidonng
added
the
feature request
Issues that request new features to be added to Node.js.
label
Jul 4, 2022
Would you like to send a PR to address this? |
I came it bit late on this. Does this look good? |
@hemanth Yes, your approach also looks good. However, the code is about fetching modules (i.e. importing over network), not about |
Ah, HTTPS imports. Can we emulate them as well? |
nodejs-github-bot
pushed a commit
that referenced
this issue
Jul 9, 2022
Per RFC 7231 and 7238, HTTP `307` and `308` status code are also for redirect responses. Fixes: #43679 Refs: https://datatracker.ietf.org/doc/html/rfc7231#section-6.4.7 Refs: https://datatracker.ietf.org/doc/html/rfc7238 PR-URL: #43689 Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Jacob Smith <jacob@frende.me>
targos
pushed a commit
that referenced
this issue
Jul 12, 2022
Per RFC 7231 and 7238, HTTP `307` and `308` status code are also for redirect responses. Fixes: #43679 Refs: https://datatracker.ietf.org/doc/html/rfc7231#section-6.4.7 Refs: https://datatracker.ietf.org/doc/html/rfc7238 PR-URL: #43689 Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Jacob Smith <jacob@frende.me>
targos
pushed a commit
that referenced
this issue
Jul 20, 2022
Per RFC 7231 and 7238, HTTP `307` and `308` status code are also for redirect responses. Fixes: #43679 Refs: https://datatracker.ietf.org/doc/html/rfc7231#section-6.4.7 Refs: https://datatracker.ietf.org/doc/html/rfc7238 PR-URL: #43689 Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Jacob Smith <jacob@frende.me>
targos
pushed a commit
that referenced
this issue
Jul 31, 2022
Per RFC 7231 and 7238, HTTP `307` and `308` status code are also for redirect responses. Fixes: #43679 Refs: https://datatracker.ietf.org/doc/html/rfc7231#section-6.4.7 Refs: https://datatracker.ietf.org/doc/html/rfc7238 PR-URL: #43689 Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Jacob Smith <jacob@frende.me>
guangwong
pushed a commit
to noslate-project/node
that referenced
this issue
Oct 10, 2022
Per RFC 7231 and 7238, HTTP `307` and `308` status code are also for redirect responses. Fixes: nodejs/node#43679 Refs: https://datatracker.ietf.org/doc/html/rfc7231#section-6.4.7 Refs: https://datatracker.ietf.org/doc/html/rfc7238 PR-URL: nodejs/node#43689 Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Jacob Smith <jacob@frende.me>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
feature request
Issues that request new features to be added to Node.js.
loaders
Issues and PRs related to ES module loaders
What is the problem this feature will solve?
Quoting #36328 (comment):
What is the feature you are proposing to solve the problem?
Per RFC 7231 and 7238, HTTP
307
and308
status code are also for redirect responses.What alternatives have you considered?
N/A
The text was updated successfully, but these errors were encountered: