Skip to content

esm: treat `307` and `308` as redirects in HTTPS imports

Per RFC 7231 and 7238, HTTP 307 and 308 status code are also for redirect responses.

Fixes: https://github.com/nodejs/node/issues/43679 Refs: https://datatracker.ietf.org/doc/html/rfc7231#section-6.4.7 Refs: https://datatracker.ietf.org/doc/html/rfc7238

Merge request reports

Loading