mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
Location::query_map: support repeated key (#4183)
This adds support for parsing e.g. `?foo=hello&foo=world`, returning both "hello" and "world" in `Location::query_map`
This commit is contained in:
@@ -758,8 +758,8 @@ pub struct Location {
|
||||
|
||||
/// The parsed "query" part of "www.example.com/index.html?query#fragment".
|
||||
///
|
||||
/// "foo=42&bar%20" is parsed as `{"foo": "42", "bar ": ""}`
|
||||
pub query_map: std::collections::BTreeMap<String, String>,
|
||||
/// "foo=hello&bar%20&foo=world" is parsed as `{"bar ": [""], "foo": ["hello", "world"]}`
|
||||
pub query_map: std::collections::BTreeMap<String, Vec<String>>,
|
||||
|
||||
/// `location.origin`
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user