diff --git a/src/module/bm/header.rs b/src/module/bm/header.rs index 616fa6f7..62c61a25 100644 --- a/src/module/bm/header.rs +++ b/src/module/bm/header.rs @@ -27,9 +27,14 @@ pub fn build_header(url: &String, tags: &Vec) -> FHD { }, FHD::Key { name: String::from("TAGS"), - value: Box::new(FHD::Text(tags.connect(","))) + value: Box::new(build_tag_array(tags)) } ] } } +fn build_tag_array(tags: &Vec) -> FHD { + let texttags = tags.into_iter().map(|t| FHD::Text(t.clone())).collect(); + FHD::Array { values: Box::new(texttags) } +} +