demux/playlist: false-positive demux matching in terms of content-type
Running attachment:fake_httpd.sh and then opening
http://localhost:4242/nope-nope-nope
would make vlc treat the
contents as if it was a m3u
playlist.
Below is the relevant part of the debug-log:
[00007f06d4000cf8] core input source debug: creating demux: access='http' demux='any' location='localhost:8080/test' file='(null)'
[00007f06d4002ed8] core demux debug: looking for demux module matching "any": 68 candidates
[00007f06d400ec78] core xml reader debug: looking for xml reader module matching "any": 1 candidates
[00007f06d400ec78] core xml reader debug: using xml reader module "xml"
[00007f06d4002ed8] mod demux debug: MOD validation failed (ext=)
[00007f06d4002ed8] m3u demux debug: found valid M3U playlist
The Content-Type specified by our fake httpd (attachment:fake_httpd.sh) is "a; this-is-sparta", which certainly does not contain a mime-type associated with a m3u-playlist.