diff --git a/src/fetch/mod.rs b/src/fetch/mod.rs index b9ba618..e761a5e 100644 --- a/src/fetch/mod.rs +++ b/src/fetch/mod.rs @@ -108,8 +108,10 @@ impl FromRequestParts for IncomingInfo { .get_all("via") .into_iter() .fold(String::new(), |mut acc, v| { + if !acc.is_empty() { + acc.push_str(", "); + } acc.push_str(v.to_str().unwrap_or_default()); - acc.push_str(", "); acc }), })