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]>
15 lines
721 B
Diff
15 lines
721 B
Diff
# must fail: response_gzip fetch_gzip_O3
|
|
# a content coding is accepted (session::check_response)
|
|
diff --git a/wai/wai-rs/src/http_binding/session.rs b/wai/wai-rs/src/http_binding/session.rs
|
|
index 4730c192..da765beb 100644
|
|
--- a/wai/wai-rs/src/http_binding/session.rs
|
|
+++ b/wai/wai-rs/src/http_binding/session.rs
|
|
@@ -206,7 +206,7 @@ pub fn check_response(req: Option<ByteRange>, r: &ResponseMeta, body_len: u64, e
|
|
-> Result<ByteRange, RangeRefusal> {
|
|
let coded = |r: &ResponseMeta| r.content_encoding.as_deref()
|
|
.map(str::trim)
|
|
- .filter(|c| !c.is_empty() && !c.eq_ignore_ascii_case("identity"))
|
|
+ .filter(|_| false)
|
|
.map(str::to_string);
|
|
match r.status {
|
|
206 => {
|