15 lines
985 B
Diff
15 lines
985 B
Diff
# must fail: live_relisted_alias live_relisted_alias_walked
|
|
# a URL listed again with another cid accepted (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..867bafe5 100644
|
|
--- a/wai/wai-rs/src/http_binding/hls.rs
|
|
+++ b/wai/wai-rs/src/http_binding/hls.rs
|
|
@@ -953,7 +953,7 @@ impl Bindings {
|
|
let Some((_, cid)) = uri_cid(line) else { return Ok(()) };
|
|
let key = super::uri::resolve(&base, line);
|
|
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)))),
|
|
+ Some((held, _)) if false && *held != cid => Err(PlaylistError::Rebound(format!("{key} was listed with {}, and is now listed with {}", hex(held), hex(&cid)))),
|
|
_ => {
|
|
next.uris.insert(key, (cid, rev));
|
|
Ok(())
|