From dc619349d4e8220fa584026f62347a733b57b8dc Mon Sep 17 00:00:00 2001 From: eternal-flame-AD Date: Sat, 23 Nov 2024 04:49:57 -0600 Subject: [PATCH] fix via formatting Signed-off-by: eternal-flame-AD --- src/fetch/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 }), })