-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Description
Deserializing a string with comma separating values should not result in a vector of strings. The whatwg spec does not assign any special meaning to the comma.
This can be confirmed inside a javascript console
const url1 = new URL("http://example.com?foo=bar,baz");
console.log(url1.searchParams.get("foo")); // "bar,baz"
const url2 = new URL("http://example.com?foo=bar&foo=baz");
console.log(url2.searchParams.get("foo")); // "bar"
console.log(url2.searchParams.getAll("foo")); // [ "bar", "baz" ]
If foo is a multivalued query, the serde_json::Value
should already contain a vector of strings.
Metadata
Metadata
Assignees
Labels
No labels