diff --git a/torn-api/src/request/mod.rs b/torn-api/src/request/mod.rs index a5a7245..15ac0a0 100644 --- a/torn-api/src/request/mod.rs +++ b/torn-api/src/request/mod.rs @@ -14,7 +14,13 @@ impl ApiRequest { pub fn url(&self) -> String { let mut url = format!("https://api.torn.com/v2{}?", self.path); + let mut first = true; for (name, value) in &self.parameters { + if first { + first = false; + } else { + url.push('&'); + } url.push_str(&format!("{name}={value}")); }