# must fail: receipts_binding_recovery receipts_binding_recovery_object_not_held receipts_binding_recovery_no_matcher # a binding-recovery record accepted without its declaration, publisher or match (receipts::step6) diff --git a/wai/wai-rs/src/http_binding/receipts.rs b/wai/wai-rs/src/http_binding/receipts.rs index 83cd7ccb..7cebbbd5 100644 --- a/wai/wai-rs/src/http_binding/receipts.rs +++ b/wai/wai-rs/src/http_binding/receipts.rs @@ -660,8 +660,8 @@ fn step6( // ยง2.6.3: against its declaration together with the publisher key of a verified // delivery receipt for the declaration's subject. ClaimBody::BindingRecovery(r) => { - if passed.is_empty() { - return Err(ReceiptRefusal::ContextNotHeld); + if passed.len() < usize::MAX { + return Ok(()); } let d = declaration_of(&r.declaration, fetch)?; let publisher = passed