Skip to content

IfMatch of empty string doesn't get rejected as expected #148

Open
@paolobarbolini

Description

@paolobarbolini

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();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions