mirror of
https://github.com/NixOS/nix.git
synced 2025-11-13 05:56:03 +01:00
url: make percentEncode stricter, expose and unit test it
This commit is contained in:
parent
92611e6e4c
commit
0844856c84
3 changed files with 45 additions and 6 deletions
|
|
@ -22,6 +22,7 @@ struct ParsedURL
|
|||
MakeError(BadURL, Error);
|
||||
|
||||
std::string percentDecode(std::string_view in);
|
||||
std::string percentEncode(std::string_view s, std::string_view keep="");
|
||||
|
||||
std::map<std::string, std::string> decodeQuery(const std::string & query);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue