0.1.4 correct url encoding of query parameters

This commit is contained in:
Aaron Manning
2025-02-09 17:13:25 +11:00
parent fc3c041e0c
commit a205f80bc5
4 changed files with 10 additions and 9 deletions
+2 -2
View File
@@ -116,14 +116,14 @@ impl ListAccountsOptions {
if !query.is_empty() {
query.push('&');
}
query.push_str(&format!("filter[accountType]={}", value));
query.push_str(&format!("filter[accountType]={}", urlencoding::encode(value)));
}
if let Some(value) = &self.filter_ownership_type {
if !query.is_empty() {
query.push('&');
}
query.push_str(&format!("filter[ownershipType]={}", value));
query.push_str(&format!("filter[ownershipType]={}", urlencoding::encode(value)));
}
if !query.is_empty() {