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
net/http: http request lost data when a lot of data is submitted from a form #14272
Comments
Thank you for your report. There are several issues here, the first is the repeated values in the 9 value case and the missing value in the 10 value case. Can you please provide a small runnable sample with a http handler and template that demonstrate this problem so we can investigate. |
Here is the link: https://play.golang.org/p/ZUcoPCQKmK Please copy and run on local machine with port 8080. It will print out r.Form after the button is clicked. The above code has 2 drop down lists in the template, please copy and paste to more then 10 of them and you will see r.Form is empty. Thanks! |
Please check the error from your template executions. This is probably the On Tue, 9 Feb 2016, 17:07 kyle11rd notifications@github.com wrote:
|
And the parse On Tue, 9 Feb 2016, 17:10 Dave Cheney dave@cheney.net wrote:
|
There are no errors from err functions. So I use "_" in this example. |
@kyle11rd |
https://play.golang.org/p/O0OqEkGFLI Here I have included error checks, unfortunately no error on my side. |
@kyle11rd no, you're not checking the The problem is that you're reading the request body (with ParseForm) after you've written the response. You need to read first, then write. |
!!!!!!!!!!!!!!!!!!!!!
Strange that with only a few drop down lists no error is returned... |
I have a template with multiple drop down lists in a form:
Where
The problem is, when I have 9 drop down lists, r.Form is
But when I have 10 or more drop down lists, r.Form becomes
p.s. This happens with Go 1.5.3
The text was updated successfully, but these errors were encountered: