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/url: parseQuery() better support for array parse. #42293
Comments
That does not appear to be standard behaviour https://url.spec.whatwg.org/#urlencoded-parsing And in this case, how would valid values containing commas be preserved? |
I also think this is more of a business scenario, not suitable for general use |
If a valid value needs to contain a comma, just escape it to |
However, while this practice is not standard, if it becomes standard, it may be possible to request data transfers:
simplified to:
Of course, this is just a personal thought. xD |
Well, in order not to break the standards, I should implement this functionality in the application framework layer. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What did you do?
What did you expect to see?
fo fu n,ico
What did you see instead?
When an Array parameter is passed by
URL
orapplication/ x-www-Form-urlencoded
mode, many clients will define the request content in a comma-separated way, so can this expectation be met?The text was updated successfully, but these errors were encountered: