Skip to content

Commit

Permalink
url query now performs percent encoding and decoding for the input st…
Browse files Browse the repository at this point in the history
…ring
  • Loading branch information
bohdaq committed May 12, 2023
1 parent a4a1f2b commit 583c70c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
[package]
name = "url-build-parse"
version = "10.0.0"
version = "11.0.0"
edition = "2021"
homepage = "https://github.com/bohdaq/url-build-parse"
repository = "https://github.com/bohdaq/url-build-parse"
readme = "README.md"
description = "url-build-parse provides the ability to parse URL from string as well as construct URL from parts."
rust-version = "1.68"
authors = ["Bohdan Tsap <bohdan.tsap@tutanota.com>"]
keywords = ["URL", "query", "params"]
categories = ["web-programming", "web-programming::http-client", "web-programming::http-server", "parsing", "network-programming"]
Expand All @@ -16,4 +15,4 @@ license = "MIT OR Apache-2.0 OR ISC OR LGPL-3.0-or-later OR CC-BY-4.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
url-search-params = "10.0.0"
url-search-params = "12.0.0"
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1082,9 +1082,9 @@ mod tests {
assert_eq!(url_components.scheme, "mailto");
assert!(url_components.authority.is_none());
assert_eq!(url_components.path, "");
assert_eq!(url_components.query.as_ref().unwrap().get("subject").unwrap(), "mailto%20with%20examples");
assert_eq!(url_components.query.as_ref().unwrap().get("subject").unwrap(), "mailto with examples");
assert_eq!(url_components.query.as_ref().unwrap().get("to").unwrap(), "");
assert_eq!(url_components.query.as_ref().unwrap().get("body").unwrap(), "https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FMailto");
assert_eq!(url_components.query.as_ref().unwrap().get("body").unwrap(), "https://en.wikipedia.org/wiki/Mailto");

}

Expand Down

0 comments on commit 583c70c

Please sign in to comment.