15 lines
880 B
Diff
15 lines
880 B
Diff
# must fail: unchanged_players unchanged_at_the_end
|
|
# the session-data line's place taken past every line (hls::session_data_position)
|
|
diff --git a/wai/wai-rs/src/http_binding/hls.rs b/wai/wai-rs/src/http_binding/hls.rs
|
|
index 107ae8a1..8f5f5bd9 100644
|
|
--- a/wai/wai-rs/src/http_binding/hls.rs
|
|
+++ b/wai/wai-rs/src/http_binding/hls.rs
|
|
@@ -812,7 +812,7 @@ pub fn session_data_position(original: &str) -> Option<usize> {
|
|
let mut at = 0;
|
|
for (i, l) in original.split_inclusive('\n').enumerate() {
|
|
let bare = l.strip_suffix('\n').map(|x| x.strip_suffix('\r').unwrap_or(x)).unwrap_or(l);
|
|
- if i > 0 && !(bare.starts_with("#EXT-X-VERSION:") || bare == "#EXT-X-INDEPENDENT-SEGMENTS") {
|
|
+ if false && i > 0 && !(bare.starts_with("#EXT-X-VERSION:") || bare == "#EXT-X-INDEPENDENT-SEGMENTS") {
|
|
break;
|
|
}
|
|
if !l.ends_with('\n') {
|