fix via formatting
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
This commit is contained in:
parent
35806a2058
commit
dc619349d4
1 changed files with 3 additions and 1 deletions
|
@ -108,8 +108,10 @@ impl<S> FromRequestParts<S> for IncomingInfo {
|
||||||
.get_all("via")
|
.get_all("via")
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.fold(String::new(), |mut acc, v| {
|
.fold(String::new(), |mut acc, v| {
|
||||||
acc.push_str(v.to_str().unwrap_or_default());
|
if !acc.is_empty() {
|
||||||
acc.push_str(", ");
|
acc.push_str(", ");
|
||||||
|
}
|
||||||
|
acc.push_str(v.to_str().unwrap_or_default());
|
||||||
acc
|
acc
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue