rsnext/packages
Michiel Van Gendt d22ecd97f4
Include message body in redirect responses (#25257)
### Description
The redirect responses from the redirect function do not contain a message body. This is in conflict with the RFCs below and causes Traefik (a reverse proxy) to invalidate the responses. In this pull request, I add a response body to the redirect responses.

### References
- https://datatracker.ietf.org/doc/html/rfc7230#section-3.3
> All 1xx (Informational), 204 (No Content), and 304 (Not Modified) responses must not include a message-body. All other responses do include a message-body, although the body may be of zero length.

- https://datatracker.ietf.org/doc/html/rfc7231#section-6.4.3
> The server's response payload usually contains a short hypertext note with a hyperlink to the different URI(s).

- traefik/traefik#4456
- https://github.com/auth0/nextjs-auth0/pull/399
2021-07-09 16:32:48 +00:00
..
create-next-app v11.0.2-canary.9 2021-07-08 20:13:53 -05:00
eslint-config-next v11.0.2-canary.9 2021-07-08 20:13:53 -05:00
eslint-plugin-next v11.0.2-canary.9 2021-07-08 20:13:53 -05:00
next Include message body in redirect responses (#25257) 2021-07-09 16:32:48 +00:00
next-bundle-analyzer v11.0.2-canary.9 2021-07-08 20:13:53 -05:00
next-codemod v11.0.2-canary.9 2021-07-08 20:13:53 -05:00
next-env v11.0.2-canary.9 2021-07-08 20:13:53 -05:00
next-mdx v11.0.2-canary.9 2021-07-08 20:13:53 -05:00
next-plugin-storybook v11.0.2-canary.9 2021-07-08 20:13:53 -05:00
next-polyfill-module v11.0.2-canary.9 2021-07-08 20:13:53 -05:00
next-polyfill-nomodule v11.0.2-canary.9 2021-07-08 20:13:53 -05:00
react-dev-overlay v11.0.2-canary.9 2021-07-08 20:13:53 -05:00
react-refresh-utils v11.0.2-canary.9 2021-07-08 20:13:53 -05:00