HTTP Content-Type doesn't autodetect and it ignores <type> and <subtype>
I have a Ogg/Opus
stream, if I don't statically put in the <type>
and <subtype>
into my icecast conf file /admin/stats.xsl shows
,
server_type application/ogg
And, the HTTP header shows application/ogg
for Content-Type. If I statically put in the <type>
and <subtype>
/admin/stats.xsl
shows,
server_type audio/ogg
subtype opus
However, even statically entered the HTTP Content-Type is application/ogg
.
Per the Opus wiki [https://wiki.xiph.org/OggOpus#Content_Type], the Content-Type should be "audio/ogg; codecs=opus"
The recommended mime-type for Ogg Opus files is audio/ogg, defined in RFC 5334. If more specificity is desired, one can distinguish Opus files as 'audio/ogg; codecs=opus'. The recommended filename extension for Ogg Opus files is .opus.