open-standards/wai/http-conformance/falsify/base-unanswered.patch
Transaction Science 909312ce15 wai: falsification patches for the fix round, and the four the rewrite moved, regenerated
New: threshold-all, refusal-ends, reuse-stale, plus-sign, dispatch-layer,
union-no-layer, wai-prefix-case, dup-caps, record-alt, base-unanswered, each
naming the corpus cases it must fail. accept-gzip, trust-content-range,
skip-on-absent and intersection are the same defects written against the
current code.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-05 09:35:08 -04:00

15 lines
758 B
Diff

# must fail: fetch_O3_proof_unanswered
# an unanswered base is reported as a malformed head (session::drive)
diff --git a/wai/wai-rs/src/http_binding/session.rs b/wai/wai-rs/src/http_binding/session.rs
index 4730c192..9ba8287a 100644
--- a/wai/wai-rs/src/http_binding/session.rs
+++ b/wai/wai-rs/src/http_binding/session.rs
@@ -802,7 +802,7 @@ pub fn drive(
}
if session.queued.is_empty() {
if session.outstanding() > 0 {
- return Err(RangeRefusal::BaseUnanswered);
+ return Err(RangeRefusal::HeadMalformed("unanswered".into()));
}
return Err(RangeRefusal::HeadMalformed("the session wants nothing and has no outcome".into()));
}