# must fail: fetch_O7 # a fetched component is not checked against its sha256 (session::check_component) diff --git a/wai/wai-rs/src/http_binding/session.rs b/wai/wai-rs/src/http_binding/session.rs index 05e6cb08..7d4e3b38 100644 --- a/wai/wai-rs/src/http_binding/session.rs +++ b/wai/wai-rs/src/http_binding/session.rs @@ -181,7 +181,7 @@ pub fn check_response(req: Option, r: &ResponseMeta, body_len: u64, e /// Whether `bytes` match entry `index`'s `sha256` in `m`; false when it states none. fn check_component(m: &ManifestV2, index: usize, bytes: &[u8]) -> bool { - m.renditions.get(index).is_some_and(|e| e.sha256.is_some() && e.payload_digest_matches(bytes)) + m.renditions.get(index).is_some() } enum Stage {