open-standards/wai/http-conformance/falsify/rebind-spelling.patch

15 lines
875 B
Diff

# must fail: live_relisted_dot_alias
# bindings keyed by a line's spelling, not its resolved URL (hls::Bindings::bind)
diff --git a/wai/wai-rs/src/http_binding/hls.rs b/wai/wai-rs/src/http_binding/hls.rs
index 1852df35..3f2a43aa 100644
--- a/wai/wai-rs/src/http_binding/hls.rs
+++ b/wai/wai-rs/src/http_binding/hls.rs
@@ -951,7 +951,7 @@ impl Bindings {
let base = self.base.clone();
let mut uri = |line: &str| -> Result<(), PlaylistError> {
let Some((_, cid)) = uri_cid(line) else { return Ok(()) };
- let key = super::uri::resolve(&base, line);
+ let key = super::parse_fragment(line).0;
match next.uris.get(&key) {
Some((held, _)) if *held != cid => Err(PlaylistError::Rebound(format!("{key} was listed with {}, and is now listed with {}", hex(held), hex(&cid)))),
_ => {