diff --git a/src/client.rs b/src/client.rs index af44784..6eb4de4 100644 --- a/src/client.rs +++ b/src/client.rs @@ -1,4 +1,3 @@ -use std::io::Write; use anyhow::Result; use base64::Engine; use base64::engine::{GeneralPurpose}; @@ -53,11 +52,12 @@ impl<'a> Client<'a> { if let Some(tags) = tags { if tags.len() > 0 { - query_params.push_str("tags="); - query_params.push_str(tags.join(",").as_str()); + query_params.push(format!("tags={}", tags.join(","))); } } + url.set_query(Some(&query_params.join("&"))); + Ok(self.http_client.get(url.as_str()) .send() .await?