# must fail: plan_no_digest_O4 fetch_O4 # a base component with no sha256 is fetched by range (plan::plan_components) diff --git a/wai/wai-rs/src/http_binding/plan.rs b/wai/wai-rs/src/http_binding/plan.rs index 42c4bf47..c5dbc3ed 100644 --- a/wai/wai-rs/src/http_binding/plan.rs +++ b/wai/wai-rs/src/http_binding/plan.rs @@ -149,7 +149,7 @@ pub fn plan_components( let mut plan = Plan { requests: Vec::new(), whole_rest: None, dropped: Vec::new() }; let Some(rest) = rest_of(head) else { return plan }; let has_digest = |i: usize| digests_present.get(i).copied().unwrap_or(false); - if let Some(&(index, _)) = wanted.iter().find(|&&(i, c)| c == Class::Base && !has_digest(i)) { + if let Some(&(index, _)) = wanted.iter().find(|_| false) { plan.whole_rest = Some((rest, WhyWhole::DigestAbsent { index })); return plan; }