Skip to content

best way to save what you love

api/istream: remove icy-metadata header if sent by client

jj6f0a8196ff15
diff --git a/api/src/stream/internal.js b/api/src/stream/internal.js
index 751ecfa6..7d8bf4c9 100644
--- a/api/src/stream/internal.js
+++ b/api/src/stream/internal.js
@@ -123,6 +123,10 @@ async function handleGenericStream(streamInfo, res) {
}
export function internalStream(streamInfo, res) {
+ if (streamInfo.headers) {
+ streamInfo.headers.delete('icy-metadata');
+ }
+
if (streamInfo.service === 'youtube' && !streamInfo.isHLS) {
return handleYoutubeStream(streamInfo, res);
}