mirror of
https://github.com/wukko/cobalt.git
synced 2025-06-13 05:37:44 +02:00
api/istream: remove icy-metadata header if sent by client
This commit is contained in:
@ -123,6 +123,10 @@ async function handleGenericStream(streamInfo, res) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function internalStream(streamInfo, res) {
|
export function internalStream(streamInfo, res) {
|
||||||
|
if (streamInfo.headers) {
|
||||||
|
streamInfo.headers.delete('icy-metadata');
|
||||||
|
}
|
||||||
|
|
||||||
if (streamInfo.service === 'youtube' && !streamInfo.isHLS) {
|
if (streamInfo.service === 'youtube' && !streamInfo.isHLS) {
|
||||||
return handleYoutubeStream(streamInfo, res);
|
return handleYoutubeStream(streamInfo, res);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user