-
Notifications
You must be signed in to change notification settings - Fork 4
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
Form submit redirect #273
Comments
I'm using the require version |
Hey, sorry for the late reply, this got lost in my github inbox. Is is possible the status code is a 307? The spec for a 307 says the client should use the same method and body to make a request at the new location.
|
It's 302 |
This wrapper doesn't automatically replay requests on redirection, that's all handled by got. For 302, the spec uses "may change to GET" instead of "should" or "must", I guess this was a choice made by got developers to keep the same method for 302s as well.
|
In my case, the site breaks if you redirect using POST instead of GET. |
So, I've noticed weird behavior and I think it's caused by how you handle redirects.
When you make a POST request and the response has a redirect, you make a new request to the redirect URL, however this is again a POST request (with body), while instead it should be a simple GET request.
The text was updated successfully, but these errors were encountered: