-
-
Notifications
You must be signed in to change notification settings - Fork 941
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
Socket hang up error occurs when redirected after submitting FormData #1271
Comments
This bug is due to the fact that |
@szmarczak Another solution could be reading all the stream a single time and using it as a Buffer when making requests, but this is going to break the stream feature (big file are going to fill the RAM). |
@Giotino is right. It is not a bug, it's the intended behavior. If you want to use method rewriting, please use |
Thank you for your quick response. Giving |
What do you mean? The body is removed if you disable method rewriting. |
@Giotino @szmarczak Using Perhaps the code still tries to read FormData but simply not sending it despite that? |
I have the same issue. Using |
When using |
Why is got trying to POST to the redirected URL? Is this really expected behaviour? Historically user agents (e.g. all browsers) redirected POST to GET and so the spec was updated accordingly, yet got is redirecting POST to POST: |
Code to reproduce
Additional info
Similar result is produced with the local flask server (no error message, simply get stucked)
Checklist
The text was updated successfully, but these errors were encountered: