use headers::{IfNoneMatch, Header};
#[test]
fn test_empty_if_none_match() {
let mut iter = std::iter::empty();
let if_none_match = IfNoneMatch::decode(&mut iter);
assert!(if_none_match.is_err()); // This assert fails. `decode` returns `Ok(IfNoneMatch(Tags("")))`
}
This means that even if there's no IfNoneMatch header in the request, this'll still report it as present.
This means that even if there's no
IfNoneMatchheader in the request, this'll still report it as present.