Skip to content
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

httpcore: Add http code 308 Permanent Redirect #14639

Merged
merged 3 commits into from
Jun 12, 2020
Merged

Conversation

daniel-j
Copy link
Contributor

https://tools.ietf.org/html/rfc7538

This status code is similar to 301 (Moved Permanently) ([RFC7231], Section 6.4.2), except that it does not allow changing the request method from POST to GET.

https://evertpot.com/http/308-permanent-redirect

The difference between 301 and 308 is that a client that sees a 308 redirect MUST do the exact same request on the target location. If the request was a POST and and had a body, then the client must do a POST request with a body on the new location.

@Araq Araq merged commit 1168c75 into nim-lang:devel Jun 12, 2020
@Araq
Copy link
Member

Araq commented Jun 12, 2020

Thank you!

@daniel-j daniel-j deleted the http308 branch June 17, 2020 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants