Remove duplicate session id in session_ids field
@@ -600,11 +600,10 @@ pub fn map_request(
};
let session = session_string(&raw_session);
- let session_ids =
- std::iter::once(("sessionid".into(), session.clone()))
- .chain(secpolicy.session_ids.iter().filter_map(|s| {
- select_string(&dummy_reqinfo, s, None).map(|str| (s.to_string(), session_string(&str)))
- }))
+ let session_ids = secpolicy
+ .session_ids
+ .iter()
+ .filter_map(|s| select_string(&dummy_reqinfo, s, None).map(|str| (s.to_string(), session_string(&str))))
.collect();
RequestInfo {
