diff --git a/src/responders/serde.rs b/src/responders/serde.rs index d60eb8d..fd1eec1 100644 --- a/src/responders/serde.rs +++ b/src/responders/serde.rs @@ -193,8 +193,9 @@ pub(crate) fn events_to_header_value(events: Vec) -> Result>(); + .map(|e| (e.name, e.data.unwrap_or_default())) + .collect::>(); + serde_json::to_string(&header_value)? } else { // no event contains data, the event names can be put in the header