I wouldn't expect this to pass. It doesn't for ETag but it seems to work for IfMatch for some reason
use headers::Header as _;
fn main() {
let _ = headers::IfMatch::decode(&mut [&headers::HeaderValue::from_static("")].into_iter())
.unwrap();
let _ = headers::IfMatch::decode(&mut [].into_iter()).unwrap();
}
I wouldn't expect this to pass. It doesn't for
ETag
but it seems to work forIfMatch
for some reason